mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 22:15:21 -04:00
[ui] fix regression in conditional expression and use %c always
* This fixes the regression introduced in c28f9bc491
.
* 'if ((a && !b) || (!a && b))' can not always be simplified as 'if (a != b)' when the types for 'a' and 'b' are not straight booleans.
* Closes #1862
* Also drop the use of '%C' in printf() expression, as it is intended to print wide characters and not turn a char to uppercase.
This commit is contained in:
parent
891eb45549
commit
036f6260c5
6 changed files with 40 additions and 38 deletions
|
@ -939,7 +939,7 @@ BOOL GetDevices(DWORD devnum)
|
|||
}
|
||||
// Make sure that we don't list any drive that should not be listed
|
||||
if (remove_drive) {
|
||||
uprintf("Removing %C: from the list: This is the %s!", drive_letters[--k],
|
||||
uprintf("Removing %c: from the list: This is the %s!", toupper(drive_letters[--k]),
|
||||
(remove_drive==1)?"disk from which " APPLICATION_NAME " is running":"system disk");
|
||||
safe_free(devint_detail_data);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue