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/user32/oslibutil.cpp

    r2804 r4658  
    1 /* $Id: oslibutil.cpp,v 1.5 2000-02-16 14:34:28 sandervl Exp $ */
     1/* $Id: oslibutil.cpp,v 1.6 2000-11-21 11:36:08 sandervl Exp $ */
    22/*
    33 * Window API utility functions for OS/2
     
    2222HAB GetThreadHAB()
    2323{
    24  THDB *thdb;
     24 TEB *teb;
    2525
    26   thdb = GetThreadTHDB();
    27   if(thdb)
     26  teb = GetThreadTEB();
     27  if(teb)
    2828  {
    29         return (HAB)thdb->hab;
     29        return (HAB)teb->o.odin.hab;
    3030  }
    3131
    32   dprintf(("GetThreadHAB: thdb == NULL!!"));
     32  dprintf(("GetThreadHAB: teb == NULL!!"));
    3333  return 0;
    3434}
     
    3737void SetThreadHAB(HAB hab)
    3838{
    39  THDB *thdb;
     39 TEB *teb;
    4040
    41   thdb = GetThreadTHDB();
    42   if(thdb)
     41  teb = GetThreadTEB();
     42  if(teb)
    4343  {
    44         thdb->hab = (ULONG)hab;
     44        teb->o.odin.hab = (ULONG)hab;
    4545  }
    46   else  dprintf(("SetThreadHAB: thdb == NULL!!"));
     46  else  dprintf(("SetThreadHAB: teb == NULL!!"));
    4747}
    4848//******************************************************************************
     
    5050HMQ GetThreadMessageQueue()
    5151{
    52  THDB *thdb;
     52 TEB *teb;
    5353
    54   thdb = GetThreadTHDB();
    55   if(thdb)
     54  teb = GetThreadTEB();
     55  if(teb)
    5656  {
    57         return (HMQ)thdb->hmq;
     57        return (HMQ)teb->o.odin.hmq;
    5858  }
    5959
    60   dprintf(("GetThreadMessageQueue: thdb == NULL!!"));
     60  dprintf(("GetThreadMessageQueue: teb == NULL!!"));
    6161  return 0;
    6262}
     
    6565void SetThreadMessageQueue(HMQ hmq)
    6666{
    67  THDB *thdb;
     67 TEB *teb;
    6868
    69   thdb = GetThreadTHDB();
    70   if(thdb)
     69  teb = GetThreadTEB();
     70  if(teb)
    7171  {
    72         thdb->hmq = (ULONG)hmq;
     72        teb->o.odin.hmq = (ULONG)hmq;
    7373  }
    74   else  dprintf(("SetThreadMessageQueue: thdb == NULL!!"));
     74  else  dprintf(("SetThreadMessageQueue: teb == NULL!!"));
    7575}
    7676//******************************************************************************
     
    7878DWORD GetThreadMessageExtraInfo()
    7979{
    80  THDB *thdb;
     80 TEB *teb;
    8181
    82   thdb = GetThreadTHDB();
    83   if(thdb)
     82  teb = GetThreadTEB();
     83  if(teb)
    8484  {
    85         return thdb->lParam;
     85        return teb->o.odin.lParam;
    8686  }
    8787
    88   dprintf(("GetThreadMessageExtraInfo: thdb == NULL!!"));
     88  dprintf(("GetThreadMessageExtraInfo: teb == NULL!!"));
    8989  return 0;
    9090}
     
    9393DWORD SetThreadMessageExtraInfo(DWORD lParam)
    9494{
    95  THDB *thdb;
     95 TEB *teb;
    9696
    97   thdb = GetThreadTHDB();
    98   if(thdb)
     97  teb = GetThreadTEB();
     98  if(teb)
    9999  {
    100         thdb->lParam = lParam;
     100        teb->o.odin.lParam = lParam;
    101101  }
    102   else  dprintf(("SetThreadMessageExtraInfo: thdb == NULL!!"));
     102  else  dprintf(("SetThreadMessageExtraInfo: teb == NULL!!"));
    103103  return 0;
    104104}
Note: See TracChangeset for help on using the changeset viewer.