Nikolay Sivov : advapi32/tests: Add one more QueryServiceStatusEx() test.
Alexandre Julliard
julliard at winehq.org
Thu Oct 6 17:24:30 CDT 2011
Module: wine
Branch: master
Commit: cd919f60cf11c26a37f45c749e6341e3ce6cee05
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd919f60cf11c26a37f45c749e6341e3ce6cee05
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Oct 5 17:53:41 2011 -0500
advapi32/tests: Add one more QueryServiceStatusEx() test.
---
dlls/advapi32/tests/service.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index d594416..5bb40eb 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -1032,6 +1032,14 @@ static void test_query_svc(void)
else
ok(statusproc->dwProcessId == 0,
"Expect no process id for this stopped service\n");
+
+ /* same call with null needed pointer */
+ SetLastError(0xdeadbeef);
+ ret = pQueryServiceStatusEx(svc_handle, SC_STATUS_PROCESS_INFO, (BYTE*)statusproc, bufsize, NULL);
+ ok(!ret, "Expected failure\n");
+ ok(broken(GetLastError() == ERROR_INVALID_PARAMETER) /* NT4 */ ||
+ GetLastError() == ERROR_INVALID_ADDRESS, "got %d\n", GetLastError());
+
HeapFree(GetProcessHeap(), 0, statusproc);
CloseServiceHandle(svc_handle);
More information about the wine-cvs
mailing list