Fix typo in FormatMessageW.

This commit is contained in:
Ulrich Czekalla 2004-03-19 19:15:54 +00:00 committed by Alexandre Julliard
parent ca0f5793da
commit eebc3ef949
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}