1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

GUI: Attempt to fix internal compiler error

This commit is contained in:
Amrsatrio 2024-09-01 18:25:04 +07:00
parent 77c6a8c23e
commit 2188f0ac87

View File

@ -2542,8 +2542,8 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
}
}
HKEY hKey = NULL;
wchar_t* bIsHKLM = wcsstr(section, L"HKEY_LOCAL_MACHINE");
bIsHKLM = !bIsHKLM ? NULL : ((bIsHKLM - section) < 3);
wchar_t* matchHKLM = wcsstr(section, L"HKEY_LOCAL_MACHINE");
BOOL bIsHKLM = matchHKLM && (matchHKLM - section) < 3;
DWORD dwDisposition;
DWORD dwSize = sizeof(DWORD);
DWORD value = FALSE;