mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[ui] fix unwanted persistence unit overlay
* Also fix a typo and make sure to quote more paths when invoking Fido.
This commit is contained in:
parent
a89ed8bc60
commit
f6687e729b
6 changed files with 12 additions and 14 deletions
6
src/ui.c
6
src/ui.c
|
@ -686,11 +686,11 @@ void TogglePersistenceControls(BOOL display)
|
|||
ShowWindow(hUnits, display ? SW_SHOW : SW_HIDE);
|
||||
}
|
||||
|
||||
void SetPeristencePos(uint64_t pos)
|
||||
void SetPersistencePos(uint64_t pos)
|
||||
{
|
||||
char tmp[64];
|
||||
|
||||
if (pos != 0) {
|
||||
if ((boot_type == BT_IMAGE) && (pos != 0)) {
|
||||
TogglePersistenceControls(TRUE);
|
||||
static_sprintf(tmp, "%ld", (LONG)pos);
|
||||
} else {
|
||||
|
@ -745,7 +745,7 @@ void SetPersistenceSize(void)
|
|||
SendMessage(hCtrl, TBM_SETRANGEMAX, (WPARAM)TRUE, (LPARAM)max);
|
||||
SendMessage(hCtrl, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)pos);
|
||||
|
||||
SetPeristencePos(pos);
|
||||
SetPersistencePos(pos);
|
||||
}
|
||||
|
||||
// Toggle the Image Option dropdown (Windows To Go or persistence settings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue