Mike McCormack : msvcrt: Add a stub for _wsetlocale.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 28 06:07:51 CST 2006
Module: wine
Branch: refs/heads/master
Commit: d16c72dea57e783b76137bdb885df28d0dd36678
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d16c72dea57e783b76137bdb885df28d0dd36678
Author: Mike McCormack <mike at codeweavers.com>
Date: Tue Feb 28 13:15:50 2006 +0900
msvcrt: Add a stub for _wsetlocale.
---
dlls/msvcrt/locale.c | 13 +++++++++++++
dlls/msvcrt/msvcrt.spec | 2 +-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index d62ae1d..b3cef2d 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -464,6 +464,19 @@ char* MSVCRT_setlocale(int category, con
return MSVCRT_current_lc_all;
}
+/*********************************************************************
+ * setlocale (MSVCRT.@)
+ */
+MSVCRT_wchar_t* MSVCRT__wsetlocale(int category, const MSVCRT_wchar_t* locale)
+{
+ static MSVCRT_wchar_t fake[] = {
+ 'E','n','g','l','i','s','h','_','U','n','i','t','e','d',' ',
+ 'S','t','a','t','e','s','.','1','2','5','2',0 };
+
+ FIXME("%d %s\n", category, debugstr_w(locale));
+
+ return fake;
+}
/*********************************************************************
* _Getdays (MSVCRT.@)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 9f68417..117014e 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -541,7 +541,7 @@
@ cdecl _write(long ptr long)
@ cdecl _wrmdir(wstr)
@ stub _wsearchenv #(wstr wstr ptr)
-@ stub _wsetlocale #(long wstr)
+@ cdecl _wsetlocale(long wstr) MSVCRT__wsetlocale
@ varargs _wsopen (wstr long long) MSVCRT__wsopen
@ stub _wspawnl #(long wstr wstr) varargs
@ stub _wspawnle #(long wstr wstr) varargs
More information about the wine-cvs
mailing list