From b972df95eaae737753a7b3eb511c126b823e63c4 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Mon, 9 Jun 2025 20:33:31 -0600 Subject: [PATCH] lsteamclient: Call execute_pending_callbacks() after ISteamMatchMakingServers::CancelQuery(). CW-Bug-Id: #25532 --- lsteamclient/steam_matchmaking_manual.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lsteamclient/steam_matchmaking_manual.c b/lsteamclient/steam_matchmaking_manual.c index 50aca7ac..638339e8 100644 --- a/lsteamclient/steam_matchmaking_manual.c +++ b/lsteamclient/steam_matchmaking_manual.c @@ -11,6 +11,7 @@ void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers001_CancelQue }; TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers001_CancelQuery, ¶ms ); + execute_pending_callbacks(); } void * __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_RequestInternetServerList( struct w_iface *_this, uint32_t iApp, MatchMakingKeyValuePair_t **ppchFilters, uint32_t nFilters, w_ISteamMatchmakingServerListResponse_106 *pRequestServersResponse ) @@ -182,6 +183,7 @@ void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_CancelQue }; TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers002_CancelQuery, ¶ms ); + execute_pending_callbacks(); } void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest( struct w_iface *_this, void *hServerListRequest ) @@ -193,7 +195,7 @@ void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRe }; struct w_request *request = hServerListRequest; - TRACE( "%p\n", _this ); + TRACE( "%p %p\n", _this, hServerListRequest ); execute_pending_callbacks(); /* execute any pending callbacks that might still need to use the request */ STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest, ¶ms );