mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Merge pull request #11978 from AdmiralCurtiss/wiimote-S_FALSE
WiimoteReal/IOWin: Don't try to print error message for non-errors.
This commit is contained in:
commit
82c986816f
@ -298,8 +298,17 @@ int IOWritePerWriteFile(HANDLE& dev_handle, OVERLAPPED& hid_overlap_write,
|
|||||||
// Pending is no error!
|
// Pending is no error!
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN_LOG_FMT(WIIMOTE, "IOWrite[WWM_WRITE_FILE]: Error on WriteFile: {}",
|
if (FAILED(error))
|
||||||
Common::HRWrap(error));
|
{
|
||||||
|
WARN_LOG_FMT(WIIMOTE, "IOWrite[WWM_WRITE_FILE]: Error on WriteFile: {}",
|
||||||
|
Common::HRWrap(error));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WARN_LOG_FMT(WIIMOTE,
|
||||||
|
"IOWrite[WWM_WRITE_FILE]: Unexpected error code from WriteFile: 0x{:08x}",
|
||||||
|
error);
|
||||||
|
}
|
||||||
CancelIo(dev_handle);
|
CancelIo(dev_handle);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user