wsprintf

Aric Stewart aric at codeweavers.com
Thu Sep 20 13:38:11 CDT 2001


The behavior for wsprintfA is different that for wsprintf16 in how it
handles NULLs being passed as character parameters. This patch fixes
that.

-aric
-------------- next part --------------
Index: dlls/user/wsprintf.c
===================================================================
RCS file: /home/wine/wine/dlls/user/wsprintf.c,v
retrieving revision 1.5
diff -u -u -r1.5 wsprintf.c
--- dlls/user/wsprintf.c	2001/07/18 21:04:23	1.5
+++ dlls/user/wsprintf.c	2001/09/17 13:44:23
@@ -401,15 +401,11 @@
         {
         case WPR_WCHAR:
             *p = argData.wchar_view;
-            if (*p != '\0') p++;
-            else if (format.width > 1) *p++ = ' ';
-            else len = 0;
+            p++;
             break;
         case WPR_CHAR:
             *p = argData.char_view;
-            if (*p != '\0') p++;
-            else if (format.width > 1) *p++ = ' ';
-            else len = 0;
+            p++;
             break;
         case WPR_STRING:
             memcpy( p, argData.lpcstr_view, len );


More information about the wine-patches mailing list