Stefan Leichter : advapi32: Fix initial cleanup of the registry keys used for testing.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 30 07:11:15 CDT 2007


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

Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date:   Fri Apr 27 23:37:04 2007 +0200

advapi32: Fix initial cleanup of the registry keys used for testing.

---

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

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 9d73633..0cc58f1 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -196,7 +196,7 @@ static DWORD delete_key( HKEY hkey )
 
 static void setup_main_key(void)
 {
-    if (RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main )) delete_key( hkey_main );
+    if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main )) delete_key( hkey_main );
 
     assert (!RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main ));
 }




More information about the wine-cvs mailing list