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:
Marcus Meissner 2018-06-26 16:08:07 +02:00 committed by Alexandre Julliard
parent d3057eef31
commit 24ffba47d3
1 changed files with 1 additions and 1 deletions

View File

@ -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: */