Changeset 8840 for trunk/src/kernel32


Ignore:
Timestamp:
Jul 5, 2002, 7:59:30 PM (23 years ago)
Author:
sandervl
Message:

minor updates

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r8836 r8840  
    1 /* $Id: exceptions.cpp,v 1.63 2002-07-05 15:09:59 sandervl Exp $ */
     1/* $Id: exceptions.cpp,v 1.64 2002-07-05 17:59:30 sandervl Exp $ */
    22
    33/*
     
    578578        rc = CurrentUnhExceptionFlt(lpexpExceptionInfo);
    579579        if(rc != WINEXCEPTION_CONTINUE_SEARCH)
    580         return rc;
    581     }
    582 
     580            return rc;
     581    }
    583582
    584583    if (DosQueryModFromEIP(&hmod, &iObj, sizeof(szModName), szModName, &offObj, (ULONG)lpexpExceptionInfo->ExceptionRecord->ExceptionAddress))
     
    620619
    621620    case MBID_ABORT:
    622        KillWin32Process();
    623        // fall-through
    624 
    625621    case MBID_RETRY:
    626622    default:
     
    10671063    if(szExceptionLogFileName[0] == 0) {
    10681064        strcpy(szExceptionLogFileName, kernel32Path);
    1069         strcat(szExceptionLogFileName, "\\exception.log");
     1065        strcat(szExceptionLogFileName, "\\except.log");
    10701066    }
    10711067    rc = DosOpen(szExceptionLogFileName,         /* File path name */
     
    13011297        else    goto continuesearch; //pass on to OS/2 RTL or app exception handler
    13021298
     1299        //Log fatal exception here
     1300        logException();
     1301
    13031302        dprintf(("KERNEL32: OS2ExceptionHandler: Continue and kill\n"));
    13041303       
    1305         //Log fatal exception here
    1306         logException();
    1307 
    13081304        pCtxRec->ctx_RegEip = (ULONG)KillWin32Process;
    13091305        pCtxRec->ctx_RegEsp = pCtxRec->ctx_RegEsp + 0x10;
  • trunk/src/kernel32/hmdevio.cpp

    r8325 r8840  
    1 /* $Id: hmdevio.cpp,v 1.27 2002-04-29 16:28:37 sandervl Exp $ */
     1/* $Id: hmdevio.cpp,v 1.28 2002-07-05 17:59:30 sandervl Exp $ */
    22
    33/*
     
    6464    for(int i=0;i<nrKnownDrivers;i++)
    6565    {
    66         driver = new HMDeviceDriver(knownDriver[i].szWin32Name,
     66            driver = new HMDeviceDriver(knownDriver[i].szWin32Name,
    6767                                    knownDriver[i].szOS2Name,
    6868                                    knownDriver[i].fCreateFile,
    6969                                    knownDriver[i].devIOCtl);
    7070
    71         rc = HMDeviceRegister(knownDriver[i].szWin32Name, driver);
     71            rc = HMDeviceRegister(knownDriver[i].szWin32Name, driver);
    7272        if (rc != NO_ERROR)                                  /* check for errors */
    7373                dprintf(("KERNEL32:RegisterDevices: registering %s failed with %u.\n",
     
    138138                                   LPCSTR lpDeviceName, LPVOID lpDriverData)
    139139{
    140  HMDeviceDriver *driver;
    141  DWORD rc;
     140    HMCustomDriver *driver;
     141    DWORD rc;
    142142
    143143    dprintf(("RegisterCustomDriver %s", lpDeviceName));
     
    158158HMDeviceDriver::HMDeviceDriver(LPCSTR lpDeviceName, LPSTR lpOS2DevName, BOOL fCreate,
    159159                               WINIOCTL pDevIOCtl)
    160                 : HMDeviceKernelObjectClass(lpDeviceName)
     160                : HMDeviceHandler(lpDeviceName)
    161161{
    162162    this->fCreateFile = fCreateFile;
     
    167167//******************************************************************************
    168168HMDeviceDriver::HMDeviceDriver(LPCSTR lpDeviceName)
    169                 : HMDeviceKernelObjectClass(lpDeviceName)
     169                : HMDeviceHandler(lpDeviceName)
    170170{
    171171}
     
    611611BOOL WIN32API QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount)
    612612{
    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) {
    618618        dprintf(("DosTmrQueryTime returned %d\n", rc));
    619619        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);
    624624}
    625625//******************************************************************************
     
    627627BOOL WIN32API QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
    628628{
    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) {
    634634        dprintf(("DosTmrQueryFreq returned %d\n", rc));
    635635        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.10 2002-01-12 10:28:17 sandervl Exp $ */
     1/* $Id: hmdevio.h,v 1.11 2002-07-05 17:59:29 sandervl Exp $ */
    22
    33#ifndef __DEVIO_H__
     
    116116 *****************************************************************************/
    117117
    118 class HMDeviceDriver : public HMDeviceKernelObjectClass
     118class HMDeviceDriver : public HMDeviceHandler
    119119{
    120120public:
Note: See TracChangeset for help on using the changeset viewer.