From c4d085bc74e55b5ffea624faafac6817d0bb87c1 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 12 Dec 2012 11:15:51 +0100 Subject: [PATCH] msvcr100: Added _get_timezone implementation. --- dlls/msvcr100/msvcr100.c | 11 +++++++++++ dlls/msvcr100/msvcr100.spec | 2 +- dlls/msvcr80/msvcr80.spec | 2 +- dlls/msvcr90/msvcr90.spec | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/dlls/msvcr100/msvcr100.c b/dlls/msvcr100/msvcr100.c index 1a54c435e41..f571aee0235 100644 --- a/dlls/msvcr100/msvcr100.c +++ b/dlls/msvcr100/msvcr100.c @@ -472,6 +472,17 @@ int CDECL _sprintf_p(char *buffer, size_t length, const char *format, ...) return r; } +/********************************************************************* + * _get_timezone (MSVCR100.@) + */ +int CDECL _get_timezone(LONG *timezone) +{ + if(!CHECK_PMT(timezone != NULL)) return EINVAL; + + *timezone = *(LONG*)GetProcAddress(GetModuleHandleA("msvcrt.dll"), "_timezone"); + return 0; +} + /********************************************************************* * DllMain (MSVCR100.@) */ diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec index 510c974ccba..0729f3035a0 100644 --- a/dlls/msvcr100/msvcr100.spec +++ b/dlls/msvcr100/msvcr100.spec @@ -877,7 +877,7 @@ @ cdecl _get_printf_count_output() msvcrt._get_printf_count_output @ stub _get_purecall_handler @ cdecl _get_terminate() msvcrt._get_terminate -@ stub _get_timezone +@ cdecl _get_timezone(ptr) @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_unexpected() msvcrt._get_unexpected @ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec index 27a8f6d4107..bd1e86a151b 100644 --- a/dlls/msvcr80/msvcr80.spec +++ b/dlls/msvcr80/msvcr80.spec @@ -535,7 +535,7 @@ @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_terminate() msvcrt._get_terminate -@ stub _get_timezone +@ cdecl _get_timezone(ptr) msvcr100._get_timezone @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_unexpected() msvcrt._get_unexpected @ stub _get_winmajor diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec index ccdb7e0ff52..2453e6f97af 100644 --- a/dlls/msvcr90/msvcr90.spec +++ b/dlls/msvcr90/msvcr90.spec @@ -528,7 +528,7 @@ @ stub _get_purecall_handler @ cdecl _get_sbh_threshold() msvcrt._get_sbh_threshold @ cdecl _get_terminate() msvcrt._get_terminate -@ stub _get_timezone +@ cdecl _get_timezone(ptr) msvcr100._get_timezone @ cdecl _get_tzname(ptr str long long) msvcrt._get_tzname @ cdecl _get_unexpected() msvcrt._get_unexpected @ cdecl _get_wpgmptr(ptr) msvcrt._get_wpgmptr