mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-14 15:48:11 +03:00
lsteamclient: Reset last error in Steam_BGetCallback() on no callback return.
CW-Bug-Id: #24028
This commit is contained in:
parent
b41d9d7a36
commit
29ab2d9890
@ -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, ¶ms );
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user