kernel32: Buffer size is in characters (Coverity).

This commit is contained in:
Marcus Meissner 2012-10-13 16:52:57 +02:00 committed by Alexandre Julliard
parent 7e82db784a
commit 0a8df5ef26
1 changed files with 1 additions and 1 deletions

View File

@ -3360,7 +3360,7 @@ static void test_OpenFileById(void)
ok(GetFileAttributesA(tempFileName) != INVALID_FILE_ATTRIBUTES,
"OpenFileById: GetFileAttributesA failed to find the temp file, got error %u\n", GetLastError());
ret2 = MultiByteToWideChar(CP_ACP, 0, tempFileName + strlen(tempPath), -1, tempFileNameW, sizeof(tempFileNameW));
ret2 = MultiByteToWideChar(CP_ACP, 0, tempFileName + strlen(tempPath), -1, tempFileNameW, sizeof(tempFileNameW)/sizeof(tempFileNameW[0]));
ok(ret2, "OpenFileById: MultiByteToWideChar failed to convert tempFileName, got error %u.\n", GetLastError());
tempFileNameLen = ret2 - 1;