From c22b3cd3d3639a154cff9a77e6080dde13c1c915 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Wed, 10 Aug 2022 03:24:53 -0400 Subject: [PATCH] Fix crash. --- dll/steam_apps.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dll/steam_apps.cpp b/dll/steam_apps.cpp index fc75bf46..edb2616a 100644 --- a/dll/steam_apps.cpp +++ b/dll/steam_apps.cpp @@ -173,6 +173,8 @@ void Steam_Apps::RequestAppProofOfPurchaseKey( AppId_t nAppID ) bool Steam_Apps::GetCurrentBetaName( char *pchName, int cchNameBufferSize ) { PRINT_DEBUG("GetCurrentBetaName %i\n", cchNameBufferSize); + if (!pchName) return false; + if (sizeof("public") > cchNameBufferSize) { return false; }