From a450edfe2855ef88274a25b66c61b274215f5f35 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 9 Aug 2024 16:39:41 +0300 Subject: [PATCH] minor missing implementation in `CreateInterface()` --- dll/dll.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dll/dll.cpp b/dll/dll.cpp index 7ddc3ebd..18c210ec 100644 --- a/dll/dll.cpp +++ b/dll/dll.cpp @@ -1333,7 +1333,13 @@ STEAMCLIENT_API steam_bool Steam_GetAPICallResult( HSteamPipe hSteamPipe, SteamA STEAMCLIENT_API void *CreateInterface( const char *pName, int *pReturnCode ) { PRINT_DEBUG("%s %p", pName, pReturnCode); - return create_client_interface(pName); + auto ptr = create_client_interface(pName); + if (ptr) { + if (pReturnCode) *pReturnCode = 1; + } else { + if (pReturnCode) *pReturnCode = 0; + } + return ptr; } STEAMCLIENT_API void Breakpad_SteamMiniDumpInit( uint32 a, const char *b, const char *c )