summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_profile.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-06 14:40:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-06 14:40:36 +0000
commitd1714aa0580ec116d0d95bcaabecf35fbfbfe10c (patch)
tree5236711ae2c22e7cfdeb747a0d596c4c155c0aea /protocols/Skype/src/skype_profile.cpp
parent984502e64c8490ba7fb5ac0768762165953a0364 (diff)
some crash fixes for Skype
git-svn-id: http://svn.miranda-ng.org/main/trunk@4589 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r--protocols/Skype/src/skype_profile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp
index 5495558b83..1240cf8272 100644
--- a/protocols/Skype/src/skype_profile.cpp
+++ b/protocols/Skype/src/skype_profile.cpp
@@ -325,14 +325,14 @@ void CSkypeProto::UpdateProfile(SEObject *obj, HANDLE hContact)
void __cdecl CSkypeProto::LoadOwnInfo(void *)
{
- std::wstring nick = ::db_get_wsa(NULL, this->m_szModuleName, "Nick");
- if (nick.empty())
+ mir_ptr<wchar_t> nick( ::db_get_wsa(NULL, this->m_szModuleName, "Nick"));
+ if (nick == NULL)
{
SEString data;
this->account->GetPropFullname(data);
nick = ::mir_utf8decodeW(data);
- ::db_set_ws(NULL, this->m_szModuleName, "Nick", nick.c_str());
+ ::db_set_ws(NULL, this->m_szModuleName, "Nick", nick);
}
this->UpdateProfileAvatar(this->account.fetch());
this->UpdateProfile(this->account.fetch());