summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-16 12:57:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-16 12:57:05 +0300
commit88998a47b210daa8006844f419f66a4e3dc23e20 (patch)
treec0a82377f92c70b0811f24ad2dcd75704f79f982 /src/mir_core
parent751824c60f37e2c268fbd54deba8fccc30034436 (diff)
fix for processing our own time zones
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/Windows/timezones.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mir_core/src/Windows/timezones.cpp b/src/mir_core/src/Windows/timezones.cpp
index 414e59ff91..63d026a3eb 100644
--- a/src/mir_core/src/Windows/timezones.cpp
+++ b/src/mir_core/src/Windows/timezones.cpp
@@ -216,8 +216,9 @@ MIR_CORE_DLL(HANDLE) TimeZone_CreateByName(LPCTSTR tszName, uint32_t dwFlags)
if (tszName == nullptr)
return (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)) ? nullptr : &myInfo.myTZ;
- if (mir_wstrcmp(myInfo.myTZ.tszName, tszName) == 0)
- return (dwFlags & TZF_DIFONLY) ? nullptr : &myInfo.myTZ;
+ if (!(dwFlags & TZF_PLF_CB))
+ if (mir_wstrcmp(myInfo.myTZ.tszName, tszName) == 0)
+ return (dwFlags & TZF_DIFONLY) ? nullptr : &myInfo.myTZ;
MIM_TIMEZONE tzsearch;
tzsearch.hash = mir_hashstrT(tszName);