From 647f74d4ab859dbecf9d4315bd169dcc26f9d725 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 11 Feb 2023 23:57:46 +0100 Subject: [PATCH] [ATL] Remove some code that doesn't exist in the native ATL --- sdk/lib/atl/atlbase.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sdk/lib/atl/atlbase.h b/sdk/lib/atl/atlbase.h index 3ea33690c6b..4bc00d2e9bf 100644 --- a/sdk/lib/atl/atlbase.h +++ b/sdk/lib/atl/atlbase.h @@ -1077,11 +1077,6 @@ public: HKEY hKey = NULL; LONG lRes = ::RegOpenKeyEx(hKeyParent, lpszKeyName, 0, samDesired, &hKey); - if (lRes != ERROR_SUCCESS) - { - samDesired |= KEY_WOW64_64KEY; - lRes = ::RegOpenKeyEx(hKeyParent, lpszKeyName, 0, samDesired, &hKey); - } if (lRes == ERROR_SUCCESS) { Close(); @@ -1104,13 +1099,6 @@ public: LONG lRes = ::RegCreateKeyEx(hKeyParent, lpszKeyName, 0, lpszClass, dwOptions, samDesired, lpSecAttr, &hKey, lpdwDisposition); - if (lRes != ERROR_SUCCESS) - { - samDesired |= KEY_WOW64_64KEY; - lRes = ::RegCreateKeyEx(hKeyParent, lpszKeyName, 0, lpszClass, - dwOptions, samDesired, lpSecAttr, &hKey, - lpdwDisposition); - } if (lRes == ERROR_SUCCESS) { Close();