From 92cb62cd26cc1a5c5f96ae8c3b3855b8160884b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 8 Sep 2014 07:34:11 +0000 Subject: Facebook: crashfix git-svn-id: http://svn.miranda-ng.org/main/trunk@10405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index b76e389481..eed51d5316 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -38,7 +38,11 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) : m_invisible = false; m_signingOut = false; m_enableChat = getBool(FACEBOOK_KEY_ENABLE_CHAT, true); - m_locale = ptrA( getStringA(FACEBOOK_KEY_LOCALE)); + + // Load custom locale, if set + ptrA locale( getStringA(FACEBOOK_KEY_LOCALE)); + if (locale != NULL) + m_locale = locale; CreateProtoService(PS_CREATEACCMGRUI, &FacebookProto::SvcCreateAccMgrUI); CreateProtoService(PS_GETMYAWAYMSG, &FacebookProto::GetMyAwayMsg); -- cgit v1.2.3