Changeset 4658 for trunk/src/kernel32/lang.cpp
- Timestamp:
- Nov 21, 2000, 12:36:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/lang.cpp
r4575 r4658 1 /* $Id: lang.cpp,v 1.3 0 2000-11-09 18:18:10sandervl Exp $ */1 /* $Id: lang.cpp,v 1.31 2000-11-21 11:35:08 sandervl Exp $ */ 2 2 /* 3 3 * Win32 language API functions for OS/2 … … 888 888 LCID WIN32API GetThreadLocale() 889 889 { 890 T HDB *thdb = GetThreadTHDB();891 892 if(t hdb == NULL) {893 dprintf(("KERNEL32: ERROR: GetThreadLocale t hdb == NULL!"));890 TEB *teb = GetThreadTEB(); 891 892 if(teb == NULL) { 893 dprintf(("KERNEL32: ERROR: GetThreadLocale teb == NULL!")); 894 894 return FALSE; 895 895 } 896 dprintf(("KERNEL32: GetThreadLocale returned %x", t hdb->lcid));897 return(t hdb->lcid);896 dprintf(("KERNEL32: GetThreadLocale returned %x", teb->o.odin.lcid)); 897 return(teb->o.odin.lcid); 898 898 } 899 899 //****************************************************************************** … … 901 901 BOOL WIN32API SetThreadLocale(LCID locale) 902 902 { 903 T HDB *thdb = GetThreadTHDB();903 TEB *teb = GetThreadTEB(); 904 904 905 if(t hdb == NULL) {906 dprintf(("KERNEL32: ERROR SetThreadLocale t hdb == NULL!"));905 if(teb == NULL) { 906 dprintf(("KERNEL32: ERROR SetThreadLocale teb == NULL!")); 907 907 return FALSE; 908 908 } 909 909 dprintf(("KERNEL32: SetThreadLocale %x", locale)); 910 t hdb->lcid = locale;910 teb->o.odin.lcid = locale; 911 911 return(TRUE); 912 912 }
Note:
See TracChangeset
for help on using the changeset viewer.