lsteamclient: Reset last error in Steam_BGetCallback() on no callback return.
CW-Bug-Id: #24028
This commit is contained in:
parent
235b0b151c
commit
2e97e9f002
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:
|
next_event:
|
||||||
STEAMCLIENT_CALL( steamclient_Steam_BGetCallback, ¶ms );
|
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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue