[PATCH] psapi: GetProcessImageFileName gets character count as argument
Marcus Meissner
meissner at suse.de
Tue Jun 26 09:08:07 CDT 2018
Signed-off-by: Marcus Meissner <meissner at suse.de>
---
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 ec74716651..13205b3b8f 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: */
--
2.17.1
More information about the wine-devel
mailing list