mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 14:58:26 -04:00
[misc] improve readability of error code handling
* Also don't pass a read size value in WriteFileWithRetry() if we don't use it.
This commit is contained in:
parent
52ca79816f
commit
8a5a5a318a
25 changed files with 257 additions and 252 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Rufus: The Reliable USB Formatting Utility
|
||||
* PKI functions (code signing, etc.)
|
||||
* Copyright © 2015-2023 Pete Batard <pete@akeo.ie>
|
||||
* Copyright © 2015-2024 Pete Batard <pete@akeo.ie>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -652,7 +652,7 @@ LONG ValidateSignature(HWND hDlg, const char* path)
|
|||
trust_file.pcwszFilePath = utf8_to_wchar(path);
|
||||
if (trust_file.pcwszFilePath == NULL) {
|
||||
uprintf("PKI: Unable to convert '%s' to UTF16", path);
|
||||
return ERROR_SEVERITY_ERROR | FAC(FACILITY_CERT) | ERROR_NOT_ENOUGH_MEMORY;
|
||||
return RUFUS_ERROR(ERROR_NOT_ENOUGH_MEMORY);
|
||||
}
|
||||
|
||||
trust_data.cbStruct = sizeof(trust_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue