kernel32: Buffer size is in characters (Coverity).
This commit is contained in:
parent
7e82db784a
commit
0a8df5ef26
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue