Paul Vriens : msi/tests: Fix some test failures on Win9x and WinMe.

Alexandre Julliard julliard at winehq.org
Tue Nov 11 08:35:45 CST 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Nov 11 13:37:30 2008 +0100

msi/tests: Fix some test failures on Win9x and WinMe.

---

 dlls/msi/tests/automation.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index 4e82e9f..9568fbf 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -1816,9 +1816,18 @@ static void test_Installer_RegistryValue(void)
     HKEY curr_user = (HKEY)1;
     HRESULT hr;
     BOOL bRet;
+    LONG lRet;
 
     /* 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 */
     hr = Installer_RegistryValueE(curr_user, szKey, &bRet);




More information about the wine-cvs mailing list