Fix fmt format spec crash in WPADGetInfoAsync

Fix crash in WPADGetInfoAsync where applying {:08x} format spec to a void const* returned by fmt::ptr() causes fmt to throw an invalid format spec exception
This commit is contained in:
Squall Leonhart 2026-03-14 01:03:12 +11:00 committed by GitHub
parent a04eb53822
commit 8e86aac1b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ void padscoreExport_WPADGetInfoAsync(PPCInterpreter_t* hCPU)
ppcDefineParamU32(channel, 0);
ppcDefineParamStructPtr(wpadInfo, WPADInfo_t, 1);
ppcDefineParamMPTR(callbackFunc, 2);
cemuLog_log(LogType::InputAPI, "WPADGetInfoAsync({}, 0x{:08x}, 0x{:08x})", channel, fmt::ptr(wpadInfo), callbackFunc);
cemuLog_log(LogType::InputAPI, "WPADGetInfoAsync({}, {:p}, 0x{:08x})", channel, fmt::ptr(wpadInfo), callbackFunc);
if (channel < InputManager::kMaxWPADControllers)
{