Commit eebc3ef9 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Fix typo in FormatMessageW.

parent ca0f5793
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment