Changeset 8840 for trunk/src/kernel32
- Timestamp:
- Jul 5, 2002, 7:59:30 PM (23 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/exceptions.cpp
r8836 r8840 1 /* $Id: exceptions.cpp,v 1.6 3 2002-07-05 15:09:59sandervl Exp $ */1 /* $Id: exceptions.cpp,v 1.64 2002-07-05 17:59:30 sandervl Exp $ */ 2 2 3 3 /* … … 578 578 rc = CurrentUnhExceptionFlt(lpexpExceptionInfo); 579 579 if(rc != WINEXCEPTION_CONTINUE_SEARCH) 580 return rc; 581 } 582 580 return rc; 581 } 583 582 584 583 if (DosQueryModFromEIP(&hmod, &iObj, sizeof(szModName), szModName, &offObj, (ULONG)lpexpExceptionInfo->ExceptionRecord->ExceptionAddress)) … … 620 619 621 620 case MBID_ABORT: 622 KillWin32Process();623 // fall-through624 625 621 case MBID_RETRY: 626 622 default: … … 1067 1063 if(szExceptionLogFileName[0] == 0) { 1068 1064 strcpy(szExceptionLogFileName, kernel32Path); 1069 strcat(szExceptionLogFileName, "\\except ion.log");1065 strcat(szExceptionLogFileName, "\\except.log"); 1070 1066 } 1071 1067 rc = DosOpen(szExceptionLogFileName, /* File path name */ … … 1301 1297 else goto continuesearch; //pass on to OS/2 RTL or app exception handler 1302 1298 1299 //Log fatal exception here 1300 logException(); 1301 1303 1302 dprintf(("KERNEL32: OS2ExceptionHandler: Continue and kill\n")); 1304 1303 1305 //Log fatal exception here1306 logException();1307 1308 1304 pCtxRec->ctx_RegEip = (ULONG)KillWin32Process; 1309 1305 pCtxRec->ctx_RegEsp = pCtxRec->ctx_RegEsp + 0x10; -
trunk/src/kernel32/hmdevio.cpp
r8325 r8840 1 /* $Id: hmdevio.cpp,v 1.2 7 2002-04-29 16:28:37sandervl Exp $ */1 /* $Id: hmdevio.cpp,v 1.28 2002-07-05 17:59:30 sandervl Exp $ */ 2 2 3 3 /* … … 64 64 for(int i=0;i<nrKnownDrivers;i++) 65 65 { 66 driver = new HMDeviceDriver(knownDriver[i].szWin32Name,66 driver = new HMDeviceDriver(knownDriver[i].szWin32Name, 67 67 knownDriver[i].szOS2Name, 68 68 knownDriver[i].fCreateFile, 69 69 knownDriver[i].devIOCtl); 70 70 71 rc = HMDeviceRegister(knownDriver[i].szWin32Name, driver);71 rc = HMDeviceRegister(knownDriver[i].szWin32Name, driver); 72 72 if (rc != NO_ERROR) /* check for errors */ 73 73 dprintf(("KERNEL32:RegisterDevices: registering %s failed with %u.\n", … … 138 138 LPCSTR lpDeviceName, LPVOID lpDriverData) 139 139 { 140 HMDeviceDriver *driver;141 DWORD rc;140 HMCustomDriver *driver; 141 DWORD rc; 142 142 143 143 dprintf(("RegisterCustomDriver %s", lpDeviceName)); … … 158 158 HMDeviceDriver::HMDeviceDriver(LPCSTR lpDeviceName, LPSTR lpOS2DevName, BOOL fCreate, 159 159 WINIOCTL pDevIOCtl) 160 : HMDevice KernelObjectClass(lpDeviceName)160 : HMDeviceHandler(lpDeviceName) 161 161 { 162 162 this->fCreateFile = fCreateFile; … … 167 167 //****************************************************************************** 168 168 HMDeviceDriver::HMDeviceDriver(LPCSTR lpDeviceName) 169 : HMDevice KernelObjectClass(lpDeviceName)169 : HMDeviceHandler(lpDeviceName) 170 170 { 171 171 } … … 611 611 BOOL WIN32API QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount) 612 612 { 613 QWORD time;614 APIRET rc;615 616 rc = DosTmrQueryTime(&time);617 if(rc) {613 QWORD time; 614 APIRET rc; 615 616 rc = DosTmrQueryTime(&time); 617 if(rc) { 618 618 dprintf(("DosTmrQueryTime returned %d\n", rc)); 619 619 return(FALSE); 620 }621 lpPerformanceCount->u.LowPart = time.ulLo;622 lpPerformanceCount->u.HighPart = time.ulHi;623 return(TRUE);620 } 621 lpPerformanceCount->u.LowPart = time.ulLo; 622 lpPerformanceCount->u.HighPart = time.ulHi; 623 return(TRUE); 624 624 } 625 625 //****************************************************************************** … … 627 627 BOOL WIN32API QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency) 628 628 { 629 APIRET rc;630 ULONG freq;631 632 rc = DosTmrQueryFreq(&freq);633 if(rc) {629 APIRET rc; 630 ULONG freq; 631 632 rc = DosTmrQueryFreq(&freq); 633 if(rc) { 634 634 dprintf(("DosTmrQueryFreq returned %d\n", rc)); 635 635 return(FALSE); 636 }637 lpFrequency->u.LowPart = freq;638 lpFrequency->u.HighPart = 0;639 dprintf2(("QueryPerformanceFrequency returned 0x%X%X\n", lpFrequency->u.HighPart, lpFrequency->u.LowPart));640 return(TRUE);641 } 642 //****************************************************************************** 643 //****************************************************************************** 636 } 637 lpFrequency->u.LowPart = freq; 638 lpFrequency->u.HighPart = 0; 639 dprintf2(("QueryPerformanceFrequency returned 0x%X%X\n", lpFrequency->u.HighPart, lpFrequency->u.LowPart)); 640 return(TRUE); 641 } 642 //****************************************************************************** 643 //****************************************************************************** -
trunk/src/kernel32/hmdevio.h
r7763 r8840 1 /* $Id: hmdevio.h,v 1.1 0 2002-01-12 10:28:17sandervl Exp $ */1 /* $Id: hmdevio.h,v 1.11 2002-07-05 17:59:29 sandervl Exp $ */ 2 2 3 3 #ifndef __DEVIO_H__ … … 116 116 *****************************************************************************/ 117 117 118 class HMDeviceDriver : public HMDevice KernelObjectClass118 class HMDeviceDriver : public HMDeviceHandler 119 119 { 120 120 public:
Note:
See TracChangeset
for help on using the changeset viewer.