Changeset 6079 for trunk/src/kernel32/HandleManager.cpp
- Timestamp:
- Jun 23, 2001, 9:45:43 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r6069 r6079 1 /* $Id: HandleManager.cpp,v 1.6 6 2001-06-22 19:40:27sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.67 2001-06-23 07:45:42 sandervl Exp $ */ 2 2 3 3 /* … … 3025 3025 ULONG ulIndex; 3026 3026 PHANDLE pArrayOfHandles; 3027 PHANDLE pLoop1 = pHandles;3027 PHANDLE pLoop1 = lphObjects; 3028 3028 PHANDLE pLoop2; 3029 3029 DWORD rc; 3030 3030 3031 3031 // allocate array for handle table 3032 pArrayOfHandles = (PHANDLE)alloca( nCount* sizeof(HANDLE));3032 pArrayOfHandles = (PHANDLE)alloca(cObjects * sizeof(HANDLE)); 3033 3033 if (pArrayOfHandles == NULL) 3034 3034 { 3035 dprintf(("ERROR: HMMsgWaitForMultipleObjects: alloca failed to allocate %d handles", nCount));3035 dprintf(("ERROR: HMMsgWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects)); 3036 3036 O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY); 3037 3037 return WAIT_FAILED; … … 3043 3043 for (ulIndex = 0; 3044 3044 3045 ulIndex < nCount;3045 ulIndex < cObjects; 3046 3046 3047 3047 ulIndex++, … … 3068 3068 // @@@PH: Note this will fail on handles that do NOT belong to Open32 3069 3069 // but to i.e. the console subsystem! 3070 rc = O32_MsgWaitForMultipleObjects( nCount,3070 rc = O32_MsgWaitForMultipleObjects(cObjects, 3071 3071 pArrayOfHandles, 3072 fWaitAll, dw Milliseconds,3072 fWaitAll, dwTimeout, 3073 3073 dwWakeMask); 3074 3074
Note:
See TracChangeset
for help on using the changeset viewer.