Paul Vriens : advapi32/tests: Fix valgrind warning.
Alexandre Julliard
julliard at winehq.org
Tue Nov 11 08:35:40 CST 2008
Module: wine
Branch: master
Commit: bf8ca52abfc902878389f0daaab09c0a6cc2492e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf8ca52abfc902878389f0daaab09c0a6cc2492e
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Tue Nov 11 08:14:15 2008 +0100
advapi32/tests: Fix valgrind warning.
---
dlls/advapi32/tests/service.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index f961a8b..d6d321c 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -882,7 +882,7 @@ static void test_query_svc(void)
/* Only info level is correct. It looks like the buffer/size is checked second */
SetLastError(0xdeadbeef);
ret = pQueryServiceStatusEx(NULL, 0, NULL, 0, &needed);
- /* NT4 checks the handle first */
+ /* NT4 and Wine check the handle first */
if (GetLastError() != ERROR_INVALID_HANDLE)
{
ok(!ret, "Expected failure\n");
@@ -893,7 +893,7 @@ static void test_query_svc(void)
}
/* Pass a correct buffer and buffersize but a NULL handle */
- statusproc = HeapAlloc(GetProcessHeap(), 0, needed);
+ statusproc = HeapAlloc(GetProcessHeap(), 0, sizeof(SERVICE_STATUS_PROCESS));
bufsize = needed;
SetLastError(0xdeadbeef);
ret = pQueryServiceStatusEx(NULL, 0, (BYTE*)statusproc, bufsize, &needed);
More information about the wine-cvs
mailing list