msi/tests: Fix some test failures on Win9x and WinMe.
This commit is contained in:
parent
e7da58468b
commit
b4874a8921
|
@ -1816,9 +1816,18 @@ static void test_Installer_RegistryValue(void)
|
||||||
HKEY curr_user = (HKEY)1;
|
HKEY curr_user = (HKEY)1;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
BOOL bRet;
|
BOOL bRet;
|
||||||
|
LONG lRet;
|
||||||
|
|
||||||
/* Delete keys */
|
/* Delete keys */
|
||||||
if (!RegOpenKeyW( HKEY_CURRENT_USER, szKey, &hkey )) delete_key( hkey );
|
SetLastError(0xdeadbeef);
|
||||||
|
lRet = RegOpenKeyW( HKEY_CURRENT_USER, szKey, &hkey );
|
||||||
|
if (!lRet && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
{
|
||||||
|
win_skip("Needed W-functions are not implemented\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!lRet)
|
||||||
|
delete_key( hkey );
|
||||||
|
|
||||||
/* Does our key exist? Shouldn't; check with all three possible value parameter types */
|
/* Does our key exist? Shouldn't; check with all three possible value parameter types */
|
||||||
hr = Installer_RegistryValueE(curr_user, szKey, &bRet);
|
hr = Installer_RegistryValueE(curr_user, szKey, &bRet);
|
||||||
|
|
Loading…
Reference in New Issue