mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 14:35:21 -04:00
[efi] set UEFI mode when a pure EFI ISO is selected
* Closes #168 * Also fix various VS Code Analysis warnings
This commit is contained in:
parent
63e1fe3d55
commit
24e73c5e10
7 changed files with 38 additions and 23 deletions
|
@ -165,7 +165,7 @@ static __inline BOOL WriteRegistryKey32(HKEY root, const char* key, int32_t val)
|
|||
|
||||
/* Helpers for String registry operations */
|
||||
#define GetRegistryKeyStr(root, key, str, len) _GetRegistryKey(root, key, REG_SZ, (LPBYTE)str, (DWORD)len)
|
||||
#define SetRegistryKeyStr(root, key, str) _SetRegistryKey(root, key, REG_SZ, (LPBYTE)str, safe_strlen(str))
|
||||
#define SetRegistryKeyStr(root, key, str) _SetRegistryKey(root, key, REG_SZ, (LPBYTE)str, (DWORD)safe_strlen(str))
|
||||
// Use a static buffer - don't allocate
|
||||
static __inline char* ReadRegistryKeyStr(HKEY root, const char* key) {
|
||||
static char str[512];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue