mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[cmp] update Bled to latest
* Also ensure that we support Unicode paths for 7-zip * Also ensure that error messages are displayed in English
This commit is contained in:
parent
ad918c8f74
commit
71ede6d9a0
11 changed files with 187 additions and 69 deletions
|
@ -112,7 +112,7 @@ static BOOL Get7ZipPath(void)
|
|||
if ( (GetRegistryKeyStr(REGKEY_HKCU, "7-Zip\\Path", sevenzip_path, sizeof(sevenzip_path)))
|
||||
|| (GetRegistryKeyStr(REGKEY_HKLM, "7-Zip\\Path", sevenzip_path, sizeof(sevenzip_path))) ) {
|
||||
static_strcat(sevenzip_path, "\\7z.exe");
|
||||
return (_access(sevenzip_path, 0) != -1);
|
||||
return (_accessU(sevenzip_path, 0) != -1);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ BOOL IsCompressedBootableImage(const char* path)
|
|||
if (buf == NULL)
|
||||
return FALSE;
|
||||
FormatStatus = 0;
|
||||
bled_init(_uprintf, NULL, NULL, NULL, &FormatStatus);
|
||||
bled_init(_uprintf, NULL, NULL, NULL, NULL, &FormatStatus);
|
||||
dc = bled_uncompress_to_buffer(path, (char*)buf, MBR_SIZE, file_assoc[i].type);
|
||||
bled_exit();
|
||||
if (dc != MBR_SIZE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue