From e95436e2da2fa4aa27212ebbe5f600152a34489a Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 13 Feb 2016 13:58:51 +0100 Subject: [PATCH] Fixed: Check VerboseLog config variable instead of "pPM->isVerboseLog()" --- code/ryzom/client/src/login.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/ryzom/client/src/login.cpp b/code/ryzom/client/src/login.cpp index 35a811f9b..bace38e04 100644 --- a/code/ryzom/client/src/login.cpp +++ b/code/ryzom/client/src/login.cpp @@ -899,7 +899,7 @@ bool login() Actions.enable(true); EditActions.enable(true); - if(ClientCfg.ConfigFile.exists("pPM->isVerboseLog()")) + if(ClientCfg.ConfigFile.exists("VerboseLog")) pPM->setVerboseLog(ClientCfg.ConfigFile.getVar("VerboseLog").asInt() == 1); if(pPM->isVerboseLog()) nlinfo("Using verbose log mode"); @@ -1864,9 +1864,7 @@ class CAHOpenURL : public IActionHandler // Process any inserts in lpMsgBuf. // ... // Display the string. - nlwarning("RegQueryValue for '%s' : %s", KeyName, lpMsgBuf); - // Free the buffer. - LocalFree( lpMsgBuf ); + nlwarning("RegQueryValue for '%s' : %s", KeyName, NLMISC::formatErrorMessage(0).c_str()); } #else // TODO: for Linux and Mac OS