Changeset 578 for trunk/src/kernel32/HandleManager.cpp
- Timestamp:
- Aug 19, 1999, 2:57:41 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r532 r578 1 /* $Id: HandleManager.cpp,v 1.1 0 1999-08-17 17:04:50 sandervlExp $ */1 /* $Id: HandleManager.cpp,v 1.11 1999-08-19 12:57:41 phaller Exp $ */ 2 2 3 3 /* … … 131 131 132 132 /* get appropriate device handler by the device name */ 133 static HMDeviceHandler *_HMDeviceFind(PSZ pszDeviceName);133 static HMDeviceHandler* _Optlink _HMDeviceFind(PSZ pszDeviceName); 134 134 135 135 /* get next free handle from the handle table */ 136 static ULONG _ HMHandleGetFree(void);136 static ULONG _Optlink _HMHandleGetFree(void); 137 137 138 138 /* get handle table entry from handle */ 139 static ULONG _ HMHandleQuery(HANDLE hHandle);139 static ULONG _Optlink _HMHandleQuery(HANDLE hHandle); 140 140 141 141 … … 188 188 register ULONG ulLoop; 189 189 190 for (ulLoop = 0; 190 for (ulLoop = 1; // @@@PH Note, this is an experimental change 191 // 0L as hHandle is sometimes considered invalid! 192 // this will never return 0l as free handle now. 191 193 ulLoop < MAX_OS2_HMHANDLES; 192 194 ulLoop++) … … 396 398 397 399 if (ulHandle >= MAX_OS2_HMHANDLES) /* check boundary */ 398 ulHandle = 0;400 ulHandle = 1; 399 401 } 400 402 while (ulHandle != HMGlobals.ulHandleLast); … … 492 494 #endif 493 495 494 for (ulIndex = 0;496 for (ulIndex = 1; 495 497 ulIndex < MAX_OS2_HMHANDLES; 496 498 ulIndex++)
Note:
See TracChangeset
for help on using the changeset viewer.