Commit in reactos on MAIN
include/napi/teb.h+1-11.32 -> 1.33
lib/kernel32/misc/lang.c+8-111.15 -> 1.16
+9-12
2 modified files
implemented GetThreadLocale() and partly implemented SetThreadLocale()

reactos/include/napi
teb.h 1.32 -> 1.33
diff -u -r1.32 -r1.33
--- teb.h	9 Apr 2004 20:03:10 -0000	1.32
+++ teb.h	2 May 2004 15:47:34 -0000	1.33
@@ -183,7 +183,7 @@
    struct _W32THREAD* Win32ThreadInfo; /* 40h */
    ULONG Win32ClientInfo[0x1F];        /* 44h */
    PVOID WOW32Reserved;                /* C0h */
-   ULONG CurrentLocale;                /* C4h */
+   LCID CurrentLocale;                 /* C4h */
    ULONG FpSoftwareStatusRegister;     /* C8h */
    PVOID SystemReserved1[0x36];        /* CCh */
    PVOID Spare1;                       /* 1A4h */

reactos/lib/kernel32/misc
lang.c 1.15 -> 1.16
diff -u -r1.15 -r1.16
--- lang.c	12 Apr 2004 15:08:14 -0000	1.15
+++ lang.c	2 May 2004 15:47:34 -0000	1.16
@@ -1,4 +1,4 @@
-/* $Id: lang.c,v 1.15 2004/04/12 15:08:14 mf Exp $
+/* $Id: lang.c,v 1.16 2004/05/02 15:47:34 weiden Exp $
  *
  * COPYRIGHT: See COPYING in the top level directory
  * PROJECT  : ReactOS user mode libraries
@@ -1068,18 +1068,13 @@
 #ifndef _OLE2NLS_IN_BUILD_
 
 /*
- * @unimplemented
+ * @implemented
  */
 LCID
 STDCALL
 GetThreadLocale (VOID)
 {
-    /* FIXME: ??? */
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return MAKELCID(
-        LANG_ENGLISH,
-        SORT_DEFAULT
-        );
+  return NtCurrentTeb()->CurrentLocale;
 }
 
 #endif
@@ -1563,7 +1558,7 @@
 
 
 /*
- * @unimplemented
+ * @implemented
  */
 BOOL
 STDCALL
@@ -1571,8 +1566,10 @@
     LCID    Locale
     )
 {
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return FALSE;
+  /* FIXME - Check if locale is valid */
+  
+  NtCurrentTeb()->CurrentLocale = Locale;
+  return TRUE;
 }
 
 #endif
CVSspam 0.2.8