PATCH: __crtLCMapStringA
Marcus Meissner
marcus at jet.franken.de
Sun Feb 2 12:18:34 CST 2003
Hi,
Changelog:
Implemented __crtLCMapStringA.
Index: dlls/msvcrt/locale.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/locale.c,v
retrieving revision 1.14
diff -u -u -r1.14 locale.c
--- dlls/msvcrt/locale.c 10 Dec 2002 22:56:46 -0000 1.14
+++ dlls/msvcrt/locale.c 31 Jan 2003 07:47:10 -0000
@@ -532,3 +532,19 @@
{
return MSVCRT_current_lc_all_cp;
}
+
+/*********************************************************************
+ * __crtLCMapStringA (MSVCRT.@)
+ */
+int __crtLCMapStringA(
+ LCID lcid, DWORD mapflags, const char* src, int srclen, char* dst,
+ int dstlen, unsigned int codepage, int xflag
+) {
+ FIXME("(lcid %x, flags %lx, %s(%d), %p(%d), %x, %d), partial stub!\n",
+ lcid,mapflags,src,srclen,dst,codepage,xflag
+ );
+ /* FIXME: A bit incorrect. But msvcrt itself just converts its
+ * arguments to wide strings and then calls LCMapStringW
+ */
+ return LCMapStringA(lcid,mapflags,src,srclen,dst,dstlen);
+}
Index: dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.59
diff -u -u -r1.59 msvcrt.spec
--- dlls/msvcrt/msvcrt.spec 11 Jan 2003 21:01:04 -0000 1.59
+++ dlls/msvcrt/msvcrt.spec 31 Jan 2003 07:47:10 -0000
@@ -86,7 +86,7 @@
@ stub __badioinfo
@ stub __crtCompareStringA
@ stub __crtGetLocaleInfoW
-@ stub __crtLCMapStringA
+@ cdecl __crtLCMapStringA(long long str long ptr long long long) __crtLCMapStringA
@ cdecl __dllonexit(ptr ptr ptr) __dllonexit
@ cdecl __doserrno() __doserrno
@ stub __fpecode #()
More information about the wine-patches
mailing list