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
parent b41d9d7a36
commit 29ab2d9890

View file

@ -487,7 +487,11 @@ int8_t CDECL Steam_BGetCallback( int32_t pipe, w_CallbackMsg_t *win_msg, int32_t
next_event:
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;
last_callback_data = win_msg->m_pubParam;