TIME_GetBias
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sat Mar 13 16:52:00 CST 2004
Changelog:
wine/dlls/ntdll/time.c: TIME_GetBias
Calculate the Bias before calling gmtime
This solves Bug #748. However now synplify fails with
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
I find now way to takle that problem. "Synchronous" = "Y" doesn't help.
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/ntdll/time.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/time.c,v
retrieving revision 1.42
diff -u -r1.42 time.c
--- wine/dlls/ntdll/time.c 11 Mar 2004 00:46:09 -0000 1.42
+++ wine/dlls/ntdll/time.c 13 Mar 2004 22:42:11 -0000
@@ -507,10 +507,10 @@
ptm = localtime(&utc);
*pdaylight = last_daylight =
ptm->tm_isdst; /* daylight for local timezone */
+ ret = last_bias = (int)(utc-mktime(ptm));
ptm = gmtime(&utc);
ptm->tm_isdst = *pdaylight; /* use local daylight, not that of Greenwich */
last_utc = utc;
- ret = last_bias = (int)(utc-mktime(ptm));
}
RtlLeaveCriticalSection( &TIME_GetBias_section );
return ret;
More information about the wine-patches
mailing list