Piotr Caban : msvcrt: Fix __pctype_func implementation.
Alexandre Julliard
julliard at winehq.org
Fri May 20 12:44:31 CDT 2011
Module: wine
Branch: master
Commit: 38f476399c243309ddb5f9ec7aa598687315b945
URL: http://source.winehq.org/git/wine.git/?a=commit;h=38f476399c243309ddb5f9ec7aa598687315b945
Author: Piotr Caban <piotr at codeweavers.com>
Date: Thu May 19 16:44:09 2011 +0200
msvcrt: Fix __pctype_func implementation.
---
dlls/msvcrt/ctype.c | 6 +++---
dlls/msvcrt/msvcrt.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c
index 94815b8..5573608 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 e677022..31fe719 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);
More information about the wine-cvs
mailing list