Detlef Riekenberg : advapi32/tests: Remove unneeded SetLastError.

Alexandre Julliard julliard at winehq.org
Wed Jul 1 09:28:09 CDT 2009


Module: wine
Branch: master
Commit: 04b9f0251c83977893be66a1514c7eab1611bffe
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=04b9f0251c83977893be66a1514c7eab1611bffe

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Tue Jun 30 21:24:46 2009 +0200

advapi32/tests: Remove unneeded SetLastError.

---

 dlls/advapi32/tests/registry.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index ca82fa1..71317c4 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -956,15 +956,12 @@ static void test_reg_open_key(void)
     RegCloseKey(hkResult);
 
     /* send in NULL hkResult */
-    SetLastError(0xdeadbeef);
     ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", NULL);
     ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
 
-    SetLastError(0xdeadbeef);
     ret = RegOpenKeyA(HKEY_CURRENT_USER, NULL, NULL);
     ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
 
-    SetLastError(0xdeadbeef);
     ret = RegOpenKeyA(NULL, NULL, NULL);
     ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
 




More information about the wine-cvs mailing list