Commit cd919f60 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

advapi32/tests: Add one more QueryServiceStatusEx() test.

parent 54326116
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment