From eebc3ef949d8b3682e5dd7dd9a23105f19e19e1f Mon Sep 17 00:00:00 2001 From: Ulrich Czekalla Date: Fri, 19 Mar 2004 19:15:54 +0000 Subject: [PATCH] Fix typo in FormatMessageW. --- dlls/kernel/format_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel/format_msg.c b/dlls/kernel/format_msg.c index b6ac165a6b1..50ef0b65d9f 100644 --- a/dlls/kernel/format_msg.c +++ b/dlls/kernel/format_msg.c @@ -398,7 +398,7 @@ DWORD WINAPI FormatMessageW( 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 ); }