From: Christoph von Wittich Date: Sun, 6 Dec 2009 09:40:22 +0000 (+0000) Subject: sync rsaenh_winetest with wine 1.1.34 X-Git-Tag: backups/aicom-network-stable@46924~392 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=163ce9095f6ef6fac859c094e80d3e1b0c7fd1b3 sync rsaenh_winetest with wine 1.1.34 svn path=/trunk/; revision=44433 --- diff --git a/rostests/winetests/rsaenh/rsaenh.c b/rostests/winetests/rsaenh/rsaenh.c index e59ad95a8c2..b56f4d415a3 100644 --- a/rostests/winetests/rsaenh/rsaenh.c +++ b/rostests/winetests/rsaenh/rsaenh.c @@ -72,9 +72,15 @@ static void uniquecontainer(char *unique) HKEY hkey; char guid[MAX_PATH]; DWORD size = MAX_PATH; + HRESULT ret; /* Get the MachineGUID */ - RegOpenKeyA(HKEY_LOCAL_MACHINE, szCryptography, &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); @@ -2085,7 +2091,7 @@ static void test_rsa_round_trip(void) if (result) { ok(dataLen == sizeof(test_string), "unexpected size %d\n", dataLen); - ok(!memcmp(data, test_string, sizeof(test_string)), "unexpected value"); + ok(!memcmp(data, test_string, sizeof(test_string)), "unexpected value\n"); } CryptReleaseContext(prov, 0);