Module: wine Branch: master Commit: 24ffba47d35c4fe7f5e423899951e46d0f4c57a1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=24ffba47d35c4fe7f5e423899...
Author: Marcus Meissner meissner@suse.de Date: Tue Jun 26 16:08:07 2018 +0200
psapi: GetProcessImageFileName gets character count as argument.
Signed-off-by: Marcus Meissner meissner@suse.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/psapi/tests/psapi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/psapi/tests/psapi_main.c b/dlls/psapi/tests/psapi_main.c index ec74716..13205b3 100644 --- a/dlls/psapi/tests/psapi_main.c +++ b/dlls/psapi/tests/psapi_main.c @@ -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: */