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

This commit is contained in:
Stefan Leichter 2007-04-27 23:37:04 +02:00 committed by Alexandre Julliard
parent c747ece6c7
commit 552c225949
1 changed files with 1 additions and 1 deletions

View File

@ -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 ));
}