lsteamclient: Reset last error in Steam_BGetCallback() on no callback return.

CW-Bug-Id: #24028
This commit is contained in:
Paul Gofman 2024-07-18 17:13:21 -06:00 committed by Arkadiusz Hiler
parent 235b0b151c
commit 2e97e9f002

View file

@ -487,7 +487,11 @@ int8_t CDECL Steam_BGetCallback( int32_t pipe, w_CallbackMsg_t *win_msg, int32_t
next_event: next_event:
STEAMCLIENT_CALL( steamclient_Steam_BGetCallback, &params ); STEAMCLIENT_CALL( steamclient_Steam_BGetCallback, &params );
if (!params._ret) return FALSE; if (!params._ret)
{
SetLastError(0);
return FALSE;
}
if (!(win_msg->m_pubParam = HeapAlloc( GetProcessHeap(), 0, win_msg->m_cubParam ))) return FALSE; if (!(win_msg->m_pubParam = HeapAlloc( GetProcessHeap(), 0, win_msg->m_cubParam ))) return FALSE;
last_callback_data = win_msg->m_pubParam; last_callback_data = win_msg->m_pubParam;