Paul Vriens : urlmon/tests: Fix a test by using a better default registry key.

Alexandre Julliard julliard at winehq.org
Mon Apr 6 09:00:35 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Mon Apr  6 11:13:06 2009 +0200

urlmon/tests: Fix a test by using a better default registry key.

---

 dlls/urlmon/tests/misc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c
index 7702e1e..64ed937 100644
--- a/dlls/urlmon/tests/misc.c
+++ b/dlls/urlmon/tests/misc.c
@@ -851,7 +851,10 @@ static void test_url_action(IInternetSecurityManager *secmgr, IInternetZoneManag
     HKEY hkey;
     HRESULT hres;
 
-    res = RegOpenKeyA(HKEY_LOCAL_MACHINE,
+    /* FIXME: HKEY_CURRENT_USER is most of the time the default but this can be changed on a system.
+     * The test should be changed to cope with that, if need be.
+     */
+    res = RegOpenKeyA(HKEY_CURRENT_USER,
             "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3", &hkey);
     if(res != ERROR_SUCCESS) {
         ok(0, "Could not open zone key\n");




More information about the wine-cvs mailing list