summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/skypeprofile.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-11-18 18:53:15 +0000
commita01e122eb5f84cf7fb2b704ae91556e6f6e4f6ef (patch)
tree43f80b6df32c32b8b4a85b3d6223a9bcad90d023 /protocols/SkypeClassic/src/skypeprofile.cpp
parent4491b4f5a8964a02784744de83902e1ca93013f7 (diff)
SkypeClassic
-Minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/skypeprofile.cpp')
-rw-r--r--protocols/SkypeClassic/src/skypeprofile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeClassic/src/skypeprofile.cpp b/protocols/SkypeClassic/src/skypeprofile.cpp
index 168dbfa97c..51faa34b55 100644
--- a/protocols/SkypeClassic/src/skypeprofile.cpp
+++ b/protocols/SkypeClassic/src/skypeprofile.cpp
@@ -22,12 +22,12 @@ void SkypeProfile_Save(SkypeProfile *pstProf)
void SkypeProfile_Load(SkypeProfile *pstProf)
{
- DBVARIANT dbv;
-
pstProf->Sex = (BYTE)db_get_b(NULL, SKYPE_PROTONAME, "Gender", 0);
pstProf->Birthday.wYear = (WORD)db_get_w(NULL, SKYPE_PROTONAME, "BirthYear", 1900);
pstProf->Birthday.wMonth = (WORD)db_get_b(NULL, SKYPE_PROTONAME, "BirthMonth", 01);
pstProf->Birthday.wDay = (WORD)db_get_b(NULL, SKYPE_PROTONAME, "BirthDay", 01);
+
+ DBVARIANT dbv;
if(!db_get_ts(NULL,SKYPE_PROTONAME,"Nick",&dbv))
{
_tcsncpy (pstProf->FullName, dbv.ptszVal, sizeof(pstProf->FullName)/sizeof(TCHAR));