Commit 552c2259 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

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

parent c747ece6
...@@ -196,7 +196,7 @@ static DWORD delete_key( HKEY hkey ) ...@@ -196,7 +196,7 @@ static DWORD delete_key( HKEY hkey )
static void setup_main_key(void) 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 )); assert (!RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment