Skip to content

Commit

Permalink
[install] Eliminate noise from reg_key_exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Oct 28, 2009
1 parent 0668777 commit 612f438
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions installer/registry.c
Expand Up @@ -75,12 +75,12 @@ LONG reg_key_exists ( HKEY key, LPCWSTR subkey_name ) {
HKEY subkey;
LONG err;

err = reg_open ( key, subkey_name, &subkey );
if ( err != ERROR_SUCCESS )
return err;
err = RegOpenKeyExW ( key, subkey_name, 0, ( KEY_READ | KEY_WRITE ),
&subkey );
if ( err == ERROR_SUCCESS )
RegCloseKey ( key );

reg_close ( subkey );
return ERROR_SUCCESS;
return err;
}

/**
Expand Down

0 comments on commit 612f438

Please sign in to comment.