Changeset 269 for trunk/src/kernel32/hmopen32.cpp
- Timestamp:
- Jul 5, 1999, 9:55:10 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmopen32.cpp
r241 r269 1 /* $Id: hmopen32.cpp,v 1. 5 1999-06-29 11:02:52phaller Exp $ */1 /* $Id: hmopen32.cpp,v 1.6 1999-07-05 07:55:10 phaller Exp $ */ 2 2 3 3 /* … … 517 517 { 518 518 HFILE hFile; 519 FILETIME filetime; 520 WORD filedatetime[2]; 519 521 520 522 dprintfl(("KERNEL32: HandleManager::Open32::OpenFile %s(%s,%08x,%08x,%08x) - stub?\n", … … 528 530 "\\\\.\\") == 0) 529 531 lpFileName+=4; 532 533 // filling OFSTRUCT 534 pOFStruct->cBytes = sizeof(OFSTRUCT); 535 pOFStruct->nErrCode = 0; 530 536 531 537 hFile = O32_OpenFile(lpFileName, … … 535 541 { 536 542 pHMHandleData->hWinHandle = hFile; 543 GetFileTime(hFile, 544 NULL, 545 NULL, 546 &filetime ); 547 FileTimeToDosDateTime(&filetime, 548 &filedatetime[0], 549 &filedatetime[1] ); 550 memcpy(pOFStruct->reserved, 551 filedatetime, 552 sizeof(pOFStruct->reserved) ); 537 553 return (NO_ERROR); 538 554 } 539 555 540 // @@@PH: Edgar Buerkle suspects wrong return value here, should be 0 in case of success556 // error branch 541 557 hFile = O32_GetLastError(); 542 dprintf(("KERNEL32: HandleManager::Open32::OpenFile returns %08xh\n", 543 hFile)); 544 545 return(hFile); // return error cause 558 pOFStruct->nErrCode = hFile; 559 dprintf(("KERNEL32: HandleManager::Open32::OpenFile Error %08xh\n", 560 pOFStruct->nErrCode)); 561 562 return(hFile); 546 563 } 547 564
Note:
See TracChangeset
for help on using the changeset viewer.