rsaenh/tests: Fix some test failures on Wow64.

This commit is contained in:
Paul Vriens 2009-11-18 09:10:44 +01:00 committed by Alexandre Julliard
parent 55f3c576d9
commit 3323ae9dd6

View File

@ -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);