Ignore:
Timestamp:
May 5, 2003, 12:51:05 PM (22 years ago)
Author:
sandervl
Message:

Handle files opened with 0 for dwDesiredAccess seperately

File:
1 edited

Legend:

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

    r10010 r10064  
    1 /* $Id: HandleManager.cpp,v 1.99 2003-04-11 12:08:34 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.100 2003-05-05 10:51:04 sandervl Exp $ */
    22
    33/*
     
    137137  HMDeviceHandler        *pHMEvent;        /* static instances of subsystems */
    138138  HMDeviceHandler        *pHMFile;
     139  HMDeviceHandler        *pHMInfoFile;
    139140  HMDeviceHandler        *pHMDisk;
    140141  HMDeviceHandler        *pHMMutex;
     
    490491    HMGlobals.pHMEvent      = new HMDeviceEventClass("\\\\EVENT\\");
    491492    HMGlobals.pHMFile       = new HMDeviceFileClass("\\\\FILE\\");
     493    HMGlobals.pHMInfoFile   = new HMDeviceInfoFileClass("\\\\INFOFILE\\");
    492494    HMGlobals.pHMDisk       = new HMDeviceDiskClass("\\\\DISK\\");
    493495    HMGlobals.pHMMutex      = new HMDeviceMutexClass("\\\\MUTEX\\");
     
    528530  if(HMGlobals.pHMFile)
    529531    delete HMGlobals.pHMFile;
     532  if(HMGlobals.pHMInfoFile)
     533    delete HMGlobals.pHMInfoFile;
    530534  if(HMGlobals.pHMMutex)
    531535    delete HMGlobals.pHMMutex;
     
    10691073
    10701074    if(pDeviceHandler == HMGlobals.pHMOpen32) {
    1071         pDeviceHandler = HMGlobals.pHMFile;
     1075        if(dwDesiredAccess == 0) {
     1076             pDeviceHandler = HMGlobals.pHMInfoFile;
     1077        }
     1078        else pDeviceHandler = HMGlobals.pHMFile;
    10721079    }
    10731080  }
Note: See TracChangeset for help on using the changeset viewer.