Changeset 269
- Timestamp:
 - Jul 5, 1999, 9:55:10 AM (26 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 2 edited
 
- 
          
  include/HandleManager.h (modified) (2 diffs)
 - 
          
  src/kernel32/hmopen32.cpp (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/include/HandleManager.h
r262 r269 1 /* $Id: HandleManager.h,v 1. 1 1999-07-04 09:36:02 sandervlExp $ */1 /* $Id: HandleManager.h,v 1.2 1999-07-05 07:55:09 phaller Exp $ */ 2 2 3 3 /* … … 51 51 /* all handles to our special pseudo-devices are ORed with this define */ 52 52 /* this allows us to determine quickly how to where to route requests to. */ 53 #define HM_HANDLE_ID 0x DEAD000053 #define HM_HANDLE_ID 0x77770000 54 54 #define HM_HANDLE_MASK 0x0000FFFF 55 55  - 
      
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.
  