Changeset 2053 for trunk/src/kernel32/HandleManager.cpp
- Timestamp:
- Dec 10, 1999, 3:06:12 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r1858 r2053 1 /* $Id: HandleManager.cpp,v 1.2 8 1999-11-27 12:48:25 achimhaExp $ */1 /* $Id: HandleManager.cpp,v 1.29 1999-12-10 14:06:10 sandervl Exp $ */ 2 2 3 3 /* … … 2298 2298 PHMHANDLEDATA pHMHandleData; 2299 2299 DWORD rc; /* API return code */ 2300 2300 HANDLE hOldMemMap = -1; 2301 2301 2302 2302 pDeviceHandler = HMGlobals.pHMFileMapping; /* device is predefined */ … … 2337 2337 dwMaximumSizeHigh, 2338 2338 dwMaximumSizeLow, 2339 lpName );2339 lpName, &hOldMemMap); 2340 2340 2341 2341 if (rc != NO_ERROR) /* oops, creation failed within the device handler */ 2342 2342 { 2343 TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE; 2344 SetLastError(rc); /* Hehe, OS/2 and NT are pretty compatible :) */ 2345 return (NULL); /* signal error */ 2343 TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE; 2344 SetLastError(rc); /* Hehe, OS/2 and NT are pretty compatible :) */ 2345 if(rc == ERROR_ALREADY_EXISTS) { 2346 return hOldMemMap; //return handle of existing file mapping 2347 } 2348 else return (NULL); /* signal error */ 2346 2349 } 2347 2350 else
Note:
See TracChangeset
for help on using the changeset viewer.