mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
advapi32/tests: Better check the EnumServicesStatusExW() output.
It only has this one test.
This commit is contained in:
parent
3bfe315707
commit
1da9e7c087
1 changed files with 6 additions and 0 deletions
|
@ -1631,10 +1631,16 @@ static void test_enum_svc_ex(void)
|
|||
|
||||
/* Test to show we get the same needed buffer size for the W-call */
|
||||
neededW = 0xdeadbeef;
|
||||
returnedW = 0xdeadbeef;
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pEnumServicesStatusExW(scm_handle, 0, SERVICE_WIN32, SERVICE_STATE_ALL,
|
||||
NULL, 0, &neededW, &returnedW, NULL, NULL);
|
||||
ok(!ret, "Expected failure\n");
|
||||
ok(returnedW == 0, "Expected no service returned, got %ld\n", returned);
|
||||
ok(neededW != 0xdeadbeef && neededW > 0, "Expected the needed buffer size\n");
|
||||
ok(neededW == needed, "Expected needed buffersize to be the same for A- and W-calls\n");
|
||||
ok(GetLastError() == ERROR_MORE_DATA,
|
||||
"Expected ERROR_MORE_DATA, got %ld\n", GetLastError());
|
||||
|
||||
/* Store the needed bytes */
|
||||
tempneeded = needed;
|
||||
|
|
Loading…
Reference in a new issue