Skip to content

Commit c6e1677

Browse files
committed
BootMgr (Windows): ControlSet001 -> CurrentControlSet
1 parent ea18d93 commit c6e1677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/bootmgr/bootmgr_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const char* ffDetectBootmgr(FFBootmgrResult* result)
4646
ffEfiFillLoadOption((FFEfiLoadOption *)buffer, result);
4747

4848
DWORD uefiSecureBootEnabled = 0, bufSize = 0;
49-
if (RegGetValueW(HKEY_LOCAL_MACHINE, L"SYSTEM\\ControlSet001\\Control\\SecureBoot\\State", L"UEFISecureBootEnabled", RRF_RT_REG_DWORD, NULL, &uefiSecureBootEnabled, &bufSize) == ERROR_SUCCESS)
49+
if (RegGetValueW(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Control\\SecureBoot\\State", L"UEFISecureBootEnabled", RRF_RT_REG_DWORD, NULL, &uefiSecureBootEnabled, &bufSize) == ERROR_SUCCESS)
5050
result->secureBoot = !!uefiSecureBootEnabled;
5151

5252
return NULL;

0 commit comments

Comments
 (0)