Changeset 4230 for trunk/src/kernel32/hmfile.cpp
- Timestamp:
- Sep 10, 2000, 11:54:07 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmfile.cpp
r4171 r4230 1 /* $Id: hmfile.cpp,v 1. 19 2000-09-03 09:32:19sandervl Exp $ */1 /* $Id: hmfile.cpp,v 1.20 2000-09-10 21:54:06 sandervl Exp $ */ 2 2 3 3 /* … … 314 314 if(fdwOdinOptions) 315 315 { 316 if(CreateFile(srcfileinfo->lpszFileName, pHMHandleData, 316 HMHANDLEDATA duphdata; 317 318 memcpy(&duphdata, pHMHandleData, sizeof(duphdata)); 319 duphdata.dwCreation = OPEN_EXISTING; 320 321 if(CreateFile(srcfileinfo->lpszFileName, &duphdata, 317 322 srcfileinfo->lpSecurityAttributes, NULL) == NO_ERROR) 318 323 { 324 memcpy(pHMHandleData, &duphdata, sizeof(duphdata)); 325 SetLastError(ERROR_SUCCESS); 319 326 return TRUE; 320 327 } 321 dprintf(("ERROR: DuplicateHandle; CreateFile %s failed !",328 dprintf(("ERROR: DuplicateHandle; CreateFile %s failed -> trying DosDupHandle instead!", 322 329 srcfileinfo->lpszFileName)); 323 return FALSE; 330 //SvL: IE5 setup opens file with DENYREADWRITE, so CreateFile can't 331 // be used for duplicating the handle; try DosDupHandle instead 324 332 } 325 333 … … 339 347 } 340 348 else { 349 SetLastError(ERROR_SUCCESS); 341 350 pHMHandleData->hHMHandle = *desthandle; 342 351 return TRUE; // OK
Note:
See TracChangeset
for help on using the changeset viewer.