Paul Vriens : rsaenh/tests: Fix some test failures on Wow64.

Alexandre Julliard julliard at winehq.org
Wed Nov 18 09:40:42 CST 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Wed Nov 18 09:10:44 2009 +0100

rsaenh/tests: Fix some test failures on Wow64.

---

 dlls/rsaenh/tests/rsaenh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 4d57b25..bf6ed0f 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -74,7 +74,7 @@ static void uniquecontainer(char *unique)
     DWORD size = MAX_PATH;
 
     /* Get the MachineGUID */
-    RegOpenKeyA(HKEY_LOCAL_MACHINE, szCryptography, &hkey);
+    RegOpenKeyExA(HKEY_LOCAL_MACHINE, szCryptography, 0, KEY_READ | KEY_WOW64_64KEY, &hkey);
     RegQueryValueExA(hkey, szMachineGuid, NULL, NULL, (LPBYTE)guid, &size);
     RegCloseKey(hkey);
 




More information about the wine-cvs mailing list