mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-17 16:44:27 -04:00
[efi] zero the MBR when MBR/UEFI is used
* This ensures that an MBR/UEFI UFD can only ever be booted in EFI mode * Also fix an issue where the same drive was not properly detected ("U:" vs "U:\") * Also update ReactOS copyright and fix a warning from Cppcheck in parser.c
This commit is contained in:
parent
642d797ff1
commit
14fbbfaa2e
5 changed files with 21 additions and 16 deletions
|
@ -768,7 +768,7 @@ char* insert_section_data(const char* filename, const char* section, const char*
|
|||
wchar_t buf[1024];
|
||||
FILE *fd_in = NULL, *fd_out = NULL;
|
||||
size_t i, size;
|
||||
int mode;
|
||||
int mode = 0;
|
||||
char *ret = NULL, tmp[2];
|
||||
|
||||
if ((filename == NULL) || (section == NULL) || (data == NULL))
|
||||
|
@ -897,7 +897,7 @@ char* replace_in_token_data(const char* filename, const char* token, const char*
|
|||
wchar_t buf[1024], *torep;
|
||||
FILE *fd_in = NULL, *fd_out = NULL;
|
||||
size_t i, size;
|
||||
int mode;
|
||||
int mode = 0;
|
||||
char *ret = NULL, tmp[2];
|
||||
|
||||
if ((filename == NULL) || (token == NULL) || (src == NULL) || (rep == NULL))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue