kernel32/tests: Pass correct size to MultiBytetoWideChar.

This commit is contained in:
Marcus Meissner 2008-09-14 13:11:09 +02:00 committed by Alexandre Julliard
parent 67b06ecba5
commit 395c4163b8

View file

@ -223,7 +223,7 @@ static BOOL create_wide_manifest(const char *filename, const char *manifest, BOO
BOOL ret;
int offset = (fBOM ? 0 : 1);
MultiByteToWideChar(CP_ACP, 0, manifest, -1, &wmanifest[1], (strlen(manifest)+1) * sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, manifest, -1, &wmanifest[1], (strlen(manifest)+1));
wmanifest[0] = 0xfeff;
if (fReverse)
{