summaryrefslogtreecommitdiff
path: root/src/modules/utils/timezones.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-16 18:28:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-16 18:28:33 +0000
commitf9140cb41526e9a578aac768f24453a85eba83e1 (patch)
treeea97845bb0d712bbe3b093f0706beaf69f61572f /src/modules/utils/timezones.cpp
parent253783569bef2320d04fe1d310709c64c64fd3a1 (diff)
oops
git-svn-id: http://svn.miranda-ng.org/main/trunk@8141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/timezones.cpp')
-rw-r--r--src/modules/utils/timezones.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/utils/timezones.cpp b/src/modules/utils/timezones.cpp
index 9db7e89fa7..bd37f53ef5 100644
--- a/src/modules/utils/timezones.cpp
+++ b/src/modules/utils/timezones.cpp
@@ -168,7 +168,7 @@ static HANDLE timeapiGetInfoByName(LPCTSTR tszName, DWORD dwFlags)
static HANDLE timeapiGetInfoByContact(MCONTACT hContact, LPCSTR szModule, DWORD dwFlags)
{
- if (hContact == NULL)
+ if (hContact == NULL && szModule == NULL)
return (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)) ? NULL : &myInfo.myTZ;
if (szModule == NULL) szModule = "UserInfo";