From 2188f0ac87673c513b32e9dcf90cc5c6fa79310f Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 1 Sep 2024 18:25:04 +0700 Subject: [PATCH] GUI: Attempt to fix internal compiler error --- ep_gui/GUI.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ep_gui/GUI.c b/ep_gui/GUI.c index e15912f10..a871e5f8c 100644 --- a/ep_gui/GUI.c +++ b/ep_gui/GUI.c @@ -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;