[ATL] Remove some code that doesn't exist in the native ATL

This commit is contained in:
Mark Jansen 2023-02-11 23:57:46 +01:00
parent 33c2903e6d
commit 647f74d4ab
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

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