From 5c8a57e7af065ae9e22ee63c50330f12adeca99e Mon Sep 17 00:00:00 2001 From: otavepto Date: Tue, 19 Dec 2023 16:39:51 +0200 Subject: [PATCH] more accurate implementation for BGetSessionClientResolution --- dll/steam_remoteplay.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dll/steam_remoteplay.h b/dll/steam_remoteplay.h index feaeea65..868a7dd2 100644 --- a/dll/steam_remoteplay.h +++ b/dll/steam_remoteplay.h @@ -103,6 +103,9 @@ ESteamDeviceFormFactor GetSessionClientFormFactor( uint32 unSessionID ) bool BGetSessionClientResolution( uint32 unSessionID, int *pnResolutionX, int *pnResolutionY ) { PRINT_DEBUG("Steam_RemotePlay::BGetSessionClientResolution\n"); + std::lock_guard lock(global_mutex); + if (pnResolutionX) *pnResolutionX = 0; + if (pnResolutionY) *pnResolutionY = 0; return false; }