diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c index 94815b8ea18..5573608fe40 100644 --- a/dlls/msvcrt/ctype.c +++ b/dlls/msvcrt/ctype.c @@ -56,14 +56,14 @@ WORD MSVCRT__ctype [257] = { * changes to affect ctypes (i.e. isleadbyte), we use a second table * and update its flags whenever the current locale changes. */ -WORD* MSVCRT__pctype = NULL; +unsigned short *MSVCRT__pctype = NULL; /********************************************************************* * __pctype_func (MSVCRT.@) */ -WORD** CDECL MSVCRT___pctype_func(void) +const unsigned short* CDECL MSVCRT___pctype_func(void) { - return &get_locale()->locinfo->pctype; + return get_locale()->locinfo->pctype; } /********************************************************************* diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h index e677022f1a6..31fe71949fd 100644 --- a/dlls/msvcrt/msvcrt.h +++ b/dlls/msvcrt/msvcrt.h @@ -135,7 +135,7 @@ extern int MSVCRT___lc_codepage; extern int MSVCRT___lc_collate_cp; extern int MSVCRT___mb_cur_max; extern WORD MSVCRT__ctype [257]; -extern WORD* MSVCRT__pctype; +extern unsigned short *MSVCRT__pctype; void msvcrt_set_errno(int);