Comment 4 for bug 260959

Revision history for this message
Alex Samorukov (samm-os2) wrote :

Thanks, i will check on i386 to see if it is amd64 related. Very strange. And you a got a usable output?? I found a place on the rtf code where wsprintf called, and in current windummy its just a plug. I patched this to get usable output, and it works but still print some warnings:

-int wsprintf(LPTSTR lpOut, LPCTSTR lpFmt, ...) {
- return sprintf(lpOut, "WSPRINTF-FUNCTION");
-}
+
+ int wsprintf(LPTSTR lpOut, LPCTSTR lpFmt, ...) {
+ char buffer[256];
+ int ret;
+ va_list args;
+ va_start (args, lpFmt);
+ ret=vsprintf (lpOut,lpFmt, args);
+ perror (buffer);
+ va_end (args);
+ return ret;
+}