Ignore:
Timestamp:
Mar 17, 2000, 5:28:59 PM (25 years ago)
Author:
sandervl
Message:

thread handle fix

File:
1 edited

Legend:

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

    r3140 r3142  
    1 /* $Id: hmthread.cpp,v 1.2 2000-03-17 16:08:40 sandervl Exp $ */
     1/* $Id: hmthread.cpp,v 1.3 2000-03-17 16:28:59 sandervl Exp $ */
    22
    33/*
     
    5252  //     handle of thread 0
    5353  if(fFirstThread) {
    54         return O32_GetCurrentThread(); //return Open32 handle of thread 0
     54        pHMHandleData->hHMHandle = O32_GetCurrentThread(); //return Open32 handle of thread
     55        return pHMHandleData->hHMHandle;
    5556  }
    5657  winthread = new Win32Thread(lpStartAddr, lpvThreadParm, fdwCreate, pHMHandleData->hHMHandle);
     
    6768#endif
    6869
    69   return(O32_CreateThread(lpsa,
    70                           cbStack,
    71                           winthread->GetOS2Callback(),
    72                           (LPVOID)winthread,
    73                           fdwCreate,
    74                           lpIDThread));
     70  pHMHandleData->hHMHandle = O32_CreateThread(lpsa,
     71                                              cbStack,
     72                                              winthread->GetOS2Callback(),
     73                                              (LPVOID)winthread,
     74                                              fdwCreate,
     75                                              lpIDThread);
     76  return pHMHandleData->hHMHandle;
    7577}
    7678//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.