- Timestamp:
- Nov 23, 2001, 7:58:24 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r7298 r7443 1 /* $Id: HandleManager.cpp,v 1.7 4 2001-11-08 14:49:26phaller Exp $ */1 /* $Id: HandleManager.cpp,v 1.75 2001-11-23 18:58:24 phaller Exp $ */ 2 2 3 3 /* … … 49 49 50 50 #include "HandleManager.H" 51 #include "handlenames.h" 51 52 #include "HMDevice.h" 52 53 #include "HMDisk.h" … … 984 985 else 985 986 { 987 // name resolving 988 CHAR szFilename[260]; 989 if (TRUE == HandleNamesResolveName((PSZ)lpFileName, 990 szFilename, 991 sizeof(szFilename), 992 TRUE)) 993 { 994 // use the resolved name 995 lpFileName = szFilename; 996 } 997 998 986 999 pDeviceHandler = _HMDeviceFind((LPSTR)lpFileName); /* find device */ 987 1000 if (NULL == pDeviceHandler) /* this name is unknown to us */ … … 1123 1136 PHMHANDLEDATA pHMHandleData; 1124 1137 DWORD rc; /* API return code */ 1125 1138 1139 // name resolving 1140 CHAR szFilename[260]; 1141 if (TRUE == HandleNamesResolveName((PSZ)lpFileName, 1142 szFilename, 1143 sizeof(szFilename), 1144 TRUE)) 1145 { 1146 // use the resolved name 1147 lpFileName = szFilename; 1148 } 1149 1150 1126 1151 if(fuMode & OF_REOPEN) { 1127 1152 pDeviceHandler = _HMDeviceFind((LPSTR)pOFStruct->szPathName); /* find device */ -
trunk/src/kernel32/hmparport.cpp
r7439 r7443 1 /* $Id: hmparport.cpp,v 1. 6 2001-11-23 16:07:19phaller Exp $ */1 /* $Id: hmparport.cpp,v 1.7 2001-11-23 18:58:24 phaller Exp $ */ 2 2 3 3 /* … … 15 15 #include <string.h> 16 16 #include <handlemanager.h> 17 #include "handlenames.h" 17 18 #include <heapstring.h> 18 19 #include <winioctl.h> … … 150 151 HMDeviceRegisterEx("LPT1", this, pData); 151 152 152 // @@@PH 153 // Note: also register \Device\ParallelPort1... 154 // -> we need the kernel object name space mapping 153 // add symbolic links to the "real name" of the device 154 HandleNamesAddSymbolicLink("\\Device\\ParallelPort1", "LPT1"); 155 HandleNamesAddSymbolicLink("\\Device\\ParallelPort2", "LPT2"); 156 HandleNamesAddSymbolicLink("\\Device\\ParallelPort3", "LPT3"); 155 157 } 156 158
Note:
See TracChangeset
for help on using the changeset viewer.