From 138fbd967bf47b4d90805ed37d71e46953df7951 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 26 Jul 2008 11:54:54 +0000 Subject: [PATCH] Jon Griffiths msvcrt: Implement ___setlc_active_func/___unguarded_readlc_active_add_func svn path=/trunk/; revision=34806 --- reactos/dll/win32/msvcrt/msvcrt.def | 4 ++-- reactos/lib/sdk/crt/locale/locale.c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/msvcrt/msvcrt.def b/reactos/dll/win32/msvcrt/msvcrt.def index dc1530aa008..977477266da 100644 --- a/reactos/dll/win32/msvcrt/msvcrt.def +++ b/reactos/dll/win32/msvcrt/msvcrt.def @@ -104,8 +104,8 @@ EXPORTS ; ___lc_collate_cp_func @99 ; ___lc_handle_func @100 ; ___mb_cur_max_func @101 -; ___setlc_active_func @102 -; ___unguarded_readlc_active_add_func @103 + ___setlc_active_func @102 + ___unguarded_readlc_active_add_func @103 __argc @104 DATA __argv @105 DATA __badioinfo @106 DATA diff --git a/reactos/lib/sdk/crt/locale/locale.c b/reactos/lib/sdk/crt/locale/locale.c index f9637fea38e..10125e404b1 100644 --- a/reactos/lib/sdk/crt/locale/locale.c +++ b/reactos/lib/sdk/crt/locale/locale.c @@ -875,3 +875,19 @@ int CDECL _getmbcp(void) { return MSVCRT___lc_codepage; } + +/********************************************************************* + * ___unguarded_readlc_active_add_func (MSVCRT.@) + */ +unsigned int * CDECL ___unguarded_readlc_active_add_func(void) +{ + return &__unguarded_readlc_active; +} + +/********************************************************************* + * ___setlc_active_func (MSVCRT.@) + */ +unsigned int CDECL ___setlc_active_func(void) +{ + return __setlc_active; +}