aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/win32
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-02 15:25:30 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:12:00 +0100
commit913f05af100e98a8665bbb6168e89fbcfe4ece75 (patch)
treeb5fb7c9a7fda7a6436b8f12eadbe5d10cbecaa48 /erts/emulator/drivers/win32
parentb7f7f363c44aaf0bd29e877f8060b806963458ce (diff)
downloadotp-913f05af100e98a8665bbb6168e89fbcfe4ece75.tar.gz
otp-913f05af100e98a8665bbb6168e89fbcfe4ece75.tar.bz2
otp-913f05af100e98a8665bbb6168e89fbcfe4ece75.zip
Teach windows sys_localtime_r
Diffstat (limited to 'erts/emulator/drivers/win32')
-rw-r--r--erts/emulator/drivers/win32/win_efile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c
index 630d2b4df8..0d3d334154 100644
--- a/erts/emulator/drivers/win32/win_efile.c
+++ b/erts/emulator/drivers/win32/win_efile.c
@@ -59,7 +59,7 @@
#define EPOCH_TO_FILETIME(ft, epoch) \
do { \
ULARGE_INTEGER ull; \
- ull.QuadPart = (((epoch) + EPOCH_DIFFERENCE) + TICKS_PER_SECOND); \
+ ull.QuadPart = (((epoch) + EPOCH_DIFFERENCE) * TICKS_PER_SECOND); \
(ft).dwLowDateTime = ull.LowPart; \
(ft).dwHighDateTime = ull.HighPart; \
} while(0)