mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-12 13:17:50 +02:00
lsteamclient: Use a cookie to pass unix side temporary CallbackMsg_t.
This commit is contained in:

committed by
Arkadiusz Hiler

parent
0f5e178c8f
commit
2dd569b5e6
@ -486,17 +486,14 @@ int8_t CDECL Steam_FreeLastCallback( int32_t pipe )
|
||||
|
||||
int8_t CDECL Steam_BGetCallback( int32_t pipe, w_CallbackMsg_t *win_msg, int32_t *ignored )
|
||||
{
|
||||
u_CallbackMsg_t u_msg;
|
||||
struct steamclient_Steam_BGetCallback_params params =
|
||||
{
|
||||
.pipe = pipe,
|
||||
.w_msg = win_msg,
|
||||
.ignored = ignored,
|
||||
.u_msg = &u_msg,
|
||||
};
|
||||
struct steamclient_callback_message_receive_params receive_params =
|
||||
{
|
||||
.u_msg = &u_msg,
|
||||
.w_msg = win_msg,
|
||||
};
|
||||
|
||||
@ -513,6 +510,7 @@ next_event:
|
||||
SetLastError(0);
|
||||
return FALSE;
|
||||
}
|
||||
receive_params.cookie = params.cookie;
|
||||
|
||||
if (!(win_msg->m_pubParam = HeapAlloc( GetProcessHeap(), 0, win_msg->m_cubParam ))) return FALSE;
|
||||
last_callback_data = win_msg->m_pubParam;
|
||||
|
Reference in New Issue
Block a user