fix typo in last FormatMessageW patch

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Fri Mar 19 11:11:50 CST 2004


ChangeLog:
	Ulrich Czekalla <ulrich at codeweavers.com>
	Fix typo in FormatMessageW
-------------- next part --------------
Index: dlls/kernel/format_msg.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/format_msg.c,v
retrieving revision 1.33
diff -u -w -r1.33 format_msg.c
--- dlls/kernel/format_msg.c	19 Mar 2004 01:52:10 -0000	1.33
+++ dlls/kernel/format_msg.c	19 Mar 2004 17:09:05 -0000
@@ -398,7 +398,7 @@
         FIXME("line wrapping not supported.\n");
     from = NULL;
     if (dwFlags & FORMAT_MESSAGE_FROM_STRING) {
-        from = HeapAlloc( GetProcessHeap(), 0, (strlenW((LPWSTR)lpSource) + 1) +
+        from = HeapAlloc( GetProcessHeap(), 0, (strlenW((LPWSTR)lpSource) + 1) *
             sizeof(WCHAR) );
         strcpyW( from, (LPWSTR)lpSource );
     }


More information about the wine-patches mailing list