mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[misc] improve ToggleEsp() call to take an offset
* Also fix a MinGW warning
This commit is contained in:
parent
ba406843f4
commit
3f0d574657
4 changed files with 69 additions and 54 deletions
|
@ -3640,7 +3640,7 @@ relaunch:
|
|||
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'P')) {
|
||||
int index = ComboBox_GetCurSel(hDeviceList);
|
||||
DWORD DeviceNum = (DWORD)ComboBox_GetItemData(hDeviceList, index);
|
||||
if (ToggleEsp(DeviceNum))
|
||||
if (ToggleEsp(DeviceNum, 0))
|
||||
CyclePort(index);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue