wintrust/tests: Do not test GetLastError on success.

This commit is contained in:
Detlef Riekenberg 2009-04-08 20:01:34 +02:00 committed by Alexandre Julliard
parent 49ff2be04e
commit 24340287fd
1 changed files with 1 additions and 3 deletions

View File

@ -206,9 +206,7 @@ static void test_context(void)
/* Proper release */ /* Proper release */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = pCryptCATAdminReleaseContext(hca, 0); ret = pCryptCATAdminReleaseContext(hca, 0);
ok(ret, "Expected success\n"); ok(ret, "Expected success, got FALSE with %d\n", GetLastError());
ok(GetLastError() == 0xdeadbeef,
"Expected no change in last error, got %d\n", GetLastError());
/* Try to release a second time */ /* Try to release a second time */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);