lsteamclient: Reset last error in Steam_BGetCallback() on no callback return.
CW-Bug-Id: #24028
This commit is contained in:
parent
b41d9d7a36
commit
29ab2d9890
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue