From: Piotr Caban Subject: msvcrt: Fix __p__pctype impelementation Message-Id: <4DFB9D25.8010904@codeweavers.com> Date: Fri, 17 Jun 2011 20:29:57 +0200 --- dlls/msvcrt/ctype.c | 8 ++++++++ dlls/msvcrt/msvcrt.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index 2805afb..6bf4948 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -59,6 +59,14 @@ WORD MSVCRT__ctype [257] = { unsigned short *MSVCRT__pctype = NULL; /********************************************************************* + * __p__pctype (MSVCRT.@) + */ +unsigned short** CDECL MSVCRT___p__pctype(void) +{ + return &get_locinfo()->pctype; +} + +/********************************************************************* * __pctype_func (MSVCRT.@) */ const unsigned short* CDECL MSVCRT___pctype_func(void) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 0308067..41d95bc 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -236,7 +236,7 @@ @ stub __p__mbcasemap() @ cdecl __p__mbctype() @ cdecl __p__osver() -@ cdecl __p__pctype() MSVCRT___pctype_func +@ cdecl __p__pctype() MSVCRT___p__pctype @ cdecl __p__pgmptr() @ stub __p__pwctype() @ cdecl __p__timezone() MSVCRT___p__timezone