Author: akhaldi
Date: Sat Aug 6 10:35:53 2016
New Revision: 72133
URL:
http://svn.reactos.org/svn/reactos?rev=72133&view=rev
Log:
[INCLUDE/CRT] Correct _wctime and _wctime_s when _USE_32BIT_TIME_T is defined. CORE-11799
Modified:
trunk/reactos/sdk/include/crt/time.h
Modified: trunk/reactos/sdk/include/crt/time.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/crt/time.h?rev…
==============================================================================
--- trunk/reactos/sdk/include/crt/time.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/crt/time.h [iso-8859-1] Sat Aug 6 10:35:53 2016
@@ -387,8 +387,8 @@
#define _INC_WTIME_INL
#ifdef _USE_32BIT_TIME_T
/* Do it like this to be compatible to msvcrt.dll on 32 bit windows XP and before */
-__CRT_INLINE wchar_t *__cdecl _wctime32(const time_t *_Time) { return _wctime(_Time); }
-__CRT_INLINE errno_t __cdecl _wctime32_s(wchar_t *_Buffer, size_t _SizeInWords,const
__time32_t *_Time) { return _wctime32_s(_Buffer, _SizeInWords, _Time); }
+__CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime32(_Time); }
+__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer, size_t _SizeInWords,const
__time32_t *_Time) { return _wctime32_s(_Buffer, _SizeInWords, _Time); }
#else
__CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime64(_Time); }
__CRT_INLINE errno_t __cdecl _wctime_s(wchar_t *_Buffer, size_t _SizeInWords,const
time_t *_Time) { return _wctime64_s(_Buffer, _SizeInWords, _Time); }