[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:
Pete Batard 2020-06-10 20:00:47 +01:00
parent ad918c8f74
commit 71ede6d9a0
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
11 changed files with 187 additions and 69 deletions

View file

@ -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) {