advapi32: Fix the failing QueryServiceConfig2 test on platforms win2k3 and vista.
This commit is contained in:
parent
277817aad3
commit
f3f64c7939
|
@ -938,7 +938,8 @@ static void test_queryconfig2(void)
|
|||
SetLastError(0xdeadbeef);
|
||||
ret = pQueryServiceConfig2A(svc_handle, SERVICE_CONFIG_DESCRIPTION,NULL,sizeof(SERVICE_DESCRIPTIONA),&needed);
|
||||
ok(!ret, "expected QueryServiceConfig2A to fail\n");
|
||||
ok(ERROR_INVALID_ADDRESS == GetLastError(), "expected error ERROR_INVALID_ADDRESS, got %d\n", GetLastError());
|
||||
ok((ERROR_INVALID_ADDRESS == GetLastError()) || (ERROR_INSUFFICIENT_BUFFER == GetLastError()),
|
||||
"expected error ERROR_INVALID_ADDRESS or ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pQueryServiceConfig2A(svc_handle, SERVICE_CONFIG_DESCRIPTION,NULL,sizeof(SERVICE_DESCRIPTIONA),NULL);
|
||||
|
|
Loading…
Reference in New Issue