[ADVAPI32_APITEST] Open services & SCM handles with correct access rights; improve a check order.

This commit is contained in:
Hermès Bélusca-Maïto 2018-02-25 16:09:21 +01:00
parent 509dd4e645
commit 5f4a4b35e6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 12 additions and 7 deletions

View file

@ -77,8 +77,8 @@ static void Test_LockUnlockServiceDatabase(void)
SetLastError(0xdeadbeef);
hLock = LockServiceDatabase(hScm);
ok(hLock != NULL, "hLock = 0x%p, expected non-zero\n", hLock);
ok_err(ERROR_SUCCESS);
ok(hLock != NULL, "hLock = 0x%p, expected non-zero\n", hLock);
/* Now unlock it */
if (hLock)