Changeset 9660 for trunk/src/kernel32/HandleManager.cpp
- Timestamp:
- Jan 10, 2003, 4:19:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r9653 r9660 1 /* $Id: HandleManager.cpp,v 1.9 2 2003-01-10 12:57:11sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.93 2003-01-10 15:19:53 sandervl Exp $ */ 2 2 3 3 /* … … 1121 1121 else 1122 1122 { 1123 SetLastError(ERROR_SUCCESS); //@@@PH 1999/10/27 rc5desg requires this? 1124 1125 /* copy data fields that might have been modified by CreateFile */ 1123 /* copy data fields that might have been modified by CreateFile */ 1126 1124 memcpy(&TabWin32Handles[iIndexNew].hmHandleData, 1127 1125 &HMHandleTemp, 1128 1126 sizeof(HMHANDLEDATA)); 1127 1128 if(lpSecurityAttributes && lpSecurityAttributes->bInheritHandle) { 1129 dprintf(("Set inheritance for child processes")); 1130 HMSetHandleInformation(iIndexNew, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); 1131 } 1132 1133 SetLastError(ERROR_SUCCESS); //@@@PH 1999/10/27 rc5desg requires this? 1129 1134 } 1130 1135 … … 4513 4518 } 4514 4519 4520 dprintf(("Named pipe %x", iIndexNew)); 4521 if(lpSecurityAttributes && lpSecurityAttributes->bInheritHandle) { 4522 dprintf(("Set inheritance for child processes")); 4523 HMSetHandleInformation(iIndexNew, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); 4524 } 4525 4515 4526 return iIndexNew; 4516 4527 } … … 4760 4771 *****************************************************************************/ 4761 4772 BOOL HMCreatePipe(PHANDLE phRead, 4762 PHANDLE phWrite,4763 LPSECURITY_ATTRIBUTES lpsa,4764 DWORD cbPipe)4773 PHANDLE phWrite, 4774 LPSECURITY_ATTRIBUTES lpsa, 4775 DWORD cbPipe) 4765 4776 { 4766 4777 int iIndex; /* index into the handle table */ … … 4834 4845 } 4835 4846 4847 dprintf(("Read pipe %x, Write pipe %x", iIndexNewRead, iIndexNewWrite)); 4848 if(lpsa && lpsa->bInheritHandle) { 4849 dprintf(("Set inheritance for child processes")); 4850 HMSetHandleInformation(iIndexNewRead, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); 4851 HMSetHandleInformation(iIndexNewWrite, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); 4852 } 4853 4836 4854 *phRead = iIndexNewRead; 4837 4855 *phWrite = iIndexNewWrite;
Note:
See TracChangeset
for help on using the changeset viewer.