Changeset 18046
- Timestamp:
- Nov 29, 2001, 2:38:51 PM (23 years ago)
- Location:
- tags/trunk/src/kernel32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/kernel32/HandleManager.cpp ¶
r18033 r18046 1 /* $Id: HandleManager.cpp,v 1.8 0 2001-11-29 00:20:45 phallerExp $ */1 /* $Id: HandleManager.cpp,v 1.81 2001-11-29 13:38:49 sandervl Exp $ */ 2 2 3 3 /* … … 1102 1102 if (rc != NO_ERROR) /* oops, creation failed within the device handler */ 1103 1103 { 1104 TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE; 1105 1104 TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE; 1106 1105 1107 1106 // Note: … … 1120 1119 sizeof(HMHANDLEDATA)); 1121 1120 } 1122 1123 1124 #ifdef DEBUG_LOCAL1125 dprintf(("KERNEL32/HandleManager: CreateFile(%s)=%08xh\n",1126 lpFileName,1127 iIndexNew));1128 #endif1129 1121 1130 1122 return (HFILE)iIndexNew; /* return valid handle */ -
TabularUnified tags/trunk/src/kernel32/hmcomm.cpp ¶
r18033 r18046 1 /* $Id: hmcomm.cpp,v 1.2 0 2001-11-29 00:20:47 phallerExp $ */1 /* $Id: hmcomm.cpp,v 1.21 2001-11-29 13:38:50 sandervl Exp $ */ 2 2 3 3 /* … … 221 221 { 222 222 delete pHMHandleData->lpHandlerData; 223 return error2WinError(rc);223 return rc; 224 224 } 225 225 rc = SetBaud(pHMHandleData,9600); … … 1341 1341 0,0,0, 1342 1342 0,0,0); 1343 dprintf(("SETXOFF: rc = %d", rc)); 1343 1344 break; 1344 1345 case SETXON: … … 1348 1349 0,0,0, 1349 1350 0,0,0); 1351 dprintf(("SETXON: rc = %d", rc)); 1350 1352 break; 1351 1353 default: -
TabularUnified tags/trunk/src/kernel32/hmdisk.cpp ¶
r18031 r18046 1 /* $Id: hmdisk.cpp,v 1.3 0 2001-11-28 23:33:36 phallerExp $ */1 /* $Id: hmdisk.cpp,v 1.31 2001-11-29 13:38:51 sandervl Exp $ */ 2 2 3 3 /* … … 67 67 BOOL HMDeviceDiskClass::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength) 68 68 { 69 // @@@PH70 // this is broken:71 // "\\.\C:" and "C:" is a LOGICAL drive72 // \\.\PHYSICALDRIVEx is a PHYSICAL drive!73 74 69 //\\.\x: -> length 6 75 70 //\\.\PHYSICALDRIVEn -> length 18 … … 114 109 return ERROR_INVALID_PARAMETER; 115 110 } 111 if(strncmp(lpFileName, // "support" for local unc names 112 "\\\\.\\", 113 4) == 0) 114 { 115 lpFileName+=4; 116 } 116 117 117 118 //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside … … 205 206 filename[2] = 0; 206 207 207 //Disable error popu ps. NT allows an app to open a cdrom/dvd drive without a disk inside208 //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside 208 209 //OS/2 fails in that case with error ERROR_NOT_READY 209 210 ULONG oldmode = SetErrorMode(SEM_FAILCRITICALERRORS); -
TabularUnified tags/trunk/src/kernel32/hmmailslot.cpp ¶
r18031 r18046 1 /* $Id: hmmailslot.cpp,v 1. 4 2001-11-28 23:33:36 phallerExp $1 /* $Id: hmmailslot.cpp,v 1.5 2001-11-29 13:38:51 sandervl Exp $ 2 2 * 3 3 * Win32 mailslot APIs … … 190 190 191 191 char *pipename = (char *)alloca(strlen(lpFileName)+16); 192 if(pipename == NULL) 193 {194 DebugInt3();195 return ERROR_NOT_ENOUGH_MEMORY;192 if(pipename == NULL) { 193 DebugInt3(); 194 SetLastError(ERROR_NOT_ENOUGH_MEMORY); 195 return FALSE; 196 196 } 197 197 strcpy(pipename, "\\\\.\\pipe\\"); … … 215 215 //todo: lookup name and fail if exists 216 216 mailslot = new HMMailSlotInfo(lpFileName, hPipe, -1, 0, FALSE, (LPSECURITY_ATTRIBUTES)lpSecurityAttributes); 217 if(mailslot == NULL) 218 { 219 DebugInt3(); 220 return ERROR_NOT_ENOUGH_MEMORY; 217 if(mailslot == NULL) { 218 DebugInt3(); 219 return ERROR_NOT_ENOUGH_MEMORY; 221 220 } 222 221 pHMHandleData->dwUserData = (DWORD)mailslot; -
TabularUnified tags/trunk/src/kernel32/hmnpipe.cpp ¶
r18031 r18046 1 /* $Id: hmnpipe.cpp,v 1. 5 2001-11-28 23:33:37 phallerExp $ */1 /* $Id: hmnpipe.cpp,v 1.6 2001-11-29 13:38:51 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 140 140 pHMHandleData->dwCreation, 141 141 pHMHandleData->dwFlags); 142 if(pHMHandleData->hHMHandle == -1) 143 { 144 return GetLastError(); 145 } 146 return ERROR_SUCCESS; 142 if(pHMHandleData->hHMHandle == -1) { 143 return GetLastError(); 144 } 145 return ERROR_SUCCESS; 147 146 } 148 147 -
TabularUnified tags/trunk/src/kernel32/oslibdos.cpp ¶
r18039 r18046 1 /* $Id: oslibdos.cpp,v 1.8 7 2001-11-29 10:53:28 phallerExp $ */1 /* $Id: oslibdos.cpp,v 1.88 2001-11-29 13:38:51 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 2684 2684 DosFreeMem(pTiledData); 2685 2685 2686 SetLastError(error2WinError(rc, ERROR_INVALID_HANDLE)); 2686 rc = error2WinError(rc, ERROR_INVALID_HANDLE); 2687 SetLastError(rc); 2687 2688 return (DWORD)rc; 2688 2689 }
Note:
See TracChangeset
for help on using the changeset viewer.