[misc] improve ToggleEsp() call to take an offset

* Also fix a MinGW warning
This commit is contained in:
Pete Batard 2020-08-15 14:57:48 +01:00
parent ba406843f4
commit 3f0d574657
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 69 additions and 54 deletions

View file

@ -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;
}