psapi: GetProcessImageFileName gets character count as argument.
Signed-off-by: Marcus Meissner <meissner@suse.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d3057eef31
commit
24ffba47d3
|
@ -645,7 +645,7 @@ static void test_GetProcessImageFileName(void)
|
|||
}
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
pGetProcessImageFileNameW(NULL, szImgPathW, sizeof(szImgPathW));
|
||||
pGetProcessImageFileNameW(NULL, szImgPathW, ARRAY_SIZE(szImgPathW));
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE, "expected error=ERROR_INVALID_HANDLE but got %d\n", GetLastError());
|
||||
|
||||
/* no information about correct buffer size returned: */
|
||||
|
|
Loading…
Reference in New Issue