comparison libpurple/win32/win32dep.c @ 20503:905891855710

3rd time the charm? Fixes #2990, maybe
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 12 Sep 2007 05:36:59 +0000
parents 4b1e2aefeb9d
children 723b5a2f91ce
comparison
equal deleted inserted replaced
20502:b5a2938b4549 20503:905891855710
584 } 584 }
585 585
586 libpurpledll_hInstance = NULL; 586 libpurpledll_hInstance = NULL;
587 } 587 }
588 588
589 long
590 wpurple_get_tz_offset() {
591 TIME_ZONE_INFORMATION tzi;
592 DWORD ret;
593 long off = -1;
594
595 if ((ret = GetTimeZoneInformation(&tzi)) != TIME_ZONE_ID_INVALID)
596 {
597 off = -(tzi.Bias * 60);
598 if (ret == TIME_ZONE_ID_DAYLIGHT)
599 off -= tzi.DaylightBias * 60;
600 }
601
602 return off;
603 }
604
589 /* DLL initializer */ 605 /* DLL initializer */
590 /* suppress gcc "no previous prototype" warning */ 606 /* suppress gcc "no previous prototype" warning */
591 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); 607 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
592 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { 608 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
593 libpurpledll_hInstance = hinstDLL; 609 libpurpledll_hInstance = hinstDLL;