final part of SF patch #904166 (DMC fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1049,7 +1049,8 @@ BOOL TmFromOleDate(DATE dtSrc, struct tm& tmDest)
|
||||
|
||||
// Month number always >= n/32, so save some loop time */
|
||||
for (tmDest.tm_mon = (n4Day >> 5) + 1;
|
||||
n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++);
|
||||
n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++)
|
||||
;
|
||||
|
||||
tmDest.tm_mday = (int)(n4Day - rgMonthDays[tmDest.tm_mon-1]);
|
||||
|
||||
|
Reference in New Issue
Block a user