Commit 8fe8d61a authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

rsaenh/tests: Fix some test failures on W2K.

parent ca38b8b9
......@@ -72,9 +72,15 @@ static void uniquecontainer(char *unique)
HKEY hkey;
char guid[MAX_PATH];
DWORD size = MAX_PATH;
HRESULT ret;
/* Get the MachineGUID */
RegOpenKeyExA(HKEY_LOCAL_MACHINE, szCryptography, 0, KEY_READ | KEY_WOW64_64KEY, &hkey);
ret = RegOpenKeyExA(HKEY_LOCAL_MACHINE, szCryptography, 0, KEY_READ | KEY_WOW64_64KEY, &hkey);
if (ret == ERROR_ACCESS_DENIED)
{
/* Windows 2000 can't handle KEY_WOW64_64KEY */
RegOpenKeyA(HKEY_LOCAL_MACHINE, szCryptography, &hkey);
}
RegQueryValueExA(hkey, szMachineGuid, NULL, NULL, (LPBYTE)guid, &size);
RegCloseKey(hkey);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment