From 672f30c816c27bd77671e8c225ccb881776854d2 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 13 Feb 2016 23:47:20 +0100 Subject: [PATCH] Changed: If symbol not found, return false --- code/ryzom/client/src/steam_client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/steam_client.cpp b/code/ryzom/client/src/steam_client.cpp index 57b959f22..5e954a94b 100644 --- a/code/ryzom/client/src/steam_client.cpp +++ b/code/ryzom/client/src/steam_client.cpp @@ -37,7 +37,9 @@ typedef void (__cdecl *SteamAPI_RunCallbacksFuncPtr)(); // macros to simplify dynamic functions loading #define NL_DECLARE_SYMBOL(symbol) symbol##FuncPtr nl##symbol = NULL -#define NL_LOAD_SYMBOL(symbol) nl##symbol = (symbol##FuncPtr)NLMISC::nlGetSymbolAddress(_Handle, #symbol) +#define NL_LOAD_SYMBOL(symbol) \ +nl##symbol = (symbol##FuncPtr)NLMISC::nlGetSymbolAddress(_Handle, #symbol); \ +if (nl##symbol == NULL) return false NL_DECLARE_SYMBOL(SteamAPI_Init); NL_DECLARE_SYMBOL(SteamAPI_Shutdown);