Detlef Riekenberg : wintrust/tests: Do not test GetLastError on success.
Alexandre Julliard
julliard at winehq.org
Thu Apr 9 11:13:49 CDT 2009
Module: wine
Branch: master
Commit: 24340287fd41ff984062f73e271c4da6c5d74ccd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=24340287fd41ff984062f73e271c4da6c5d74ccd
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Wed Apr 8 20:01:34 2009 +0200
wintrust/tests: Do not test GetLastError on success.
---
dlls/wintrust/tests/crypt.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c
index cfb9564..acadead 100644
--- a/dlls/wintrust/tests/crypt.c
+++ b/dlls/wintrust/tests/crypt.c
@@ -206,9 +206,7 @@ static void test_context(void)
/* Proper release */
SetLastError(0xdeadbeef);
ret = pCryptCATAdminReleaseContext(hca, 0);
- ok(ret, "Expected success\n");
- ok(GetLastError() == 0xdeadbeef,
- "Expected no change in last error, got %d\n", GetLastError());
+ ok(ret, "Expected success, got FALSE with %d\n", GetLastError());
/* Try to release a second time */
SetLastError(0xdeadbeef);
More information about the wine-cvs
mailing list