Ignore:
Timestamp:
Nov 21, 2000, 12:36:09 PM (25 years ago)
Author:
sandervl
Message:

Updates for TEB changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/lang.cpp

    r4575 r4658  
    1 /* $Id: lang.cpp,v 1.30 2000-11-09 18:18:10 sandervl Exp $ */
     1/* $Id: lang.cpp,v 1.31 2000-11-21 11:35:08 sandervl Exp $ */
    22/*
    33 * Win32 language API functions for OS/2
     
    888888LCID WIN32API GetThreadLocale()
    889889{
    890  THDB *thdb = GetThreadTHDB();
    891 
    892   if(thdb == NULL) {
    893         dprintf(("KERNEL32: ERROR: GetThreadLocale thdb == NULL!"));
     890 TEB *teb = GetThreadTEB();
     891
     892  if(teb == NULL) {
     893        dprintf(("KERNEL32: ERROR: GetThreadLocale teb == NULL!"));
    894894        return FALSE;
    895895  }
    896   dprintf(("KERNEL32: GetThreadLocale returned %x", thdb->lcid));
    897   return(thdb->lcid);
     896  dprintf(("KERNEL32: GetThreadLocale returned %x", teb->o.odin.lcid));
     897  return(teb->o.odin.lcid);
    898898}
    899899//******************************************************************************
     
    901901BOOL WIN32API SetThreadLocale(LCID locale)
    902902{
    903  THDB *thdb = GetThreadTHDB();
     903 TEB *teb = GetThreadTEB();
    904904 
    905   if(thdb == NULL) {
    906         dprintf(("KERNEL32: ERROR SetThreadLocale thdb == NULL!"));
     905  if(teb == NULL) {
     906        dprintf(("KERNEL32: ERROR SetThreadLocale teb == NULL!"));
    907907        return FALSE;
    908908  }
    909909  dprintf(("KERNEL32: SetThreadLocale %x", locale));
    910   thdb->lcid = locale;
     910  teb->o.odin.lcid = locale;
    911911  return(TRUE);
    912912}
Note: See TracChangeset for help on using the changeset viewer.