Changeset 7474 for trunk/src/kernel32/hmmailslot.cpp
- Timestamp:
- Nov 29, 2001, 12:33:37 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmmailslot.cpp
r7457 r7474 1 /* $Id: hmmailslot.cpp,v 1. 3 2001-11-26 14:54:02 sandervlExp $1 /* $Id: hmmailslot.cpp,v 1.4 2001-11-28 23:33:36 phaller Exp $ 2 2 * 3 3 * Win32 mailslot APIs … … 190 190 191 191 char *pipename = (char *)alloca(strlen(lpFileName)+16); 192 if(pipename == NULL) {193 DebugInt3();194 SetLastError(ERROR_NOT_ENOUGH_MEMORY);195 return FALSE;192 if(pipename == NULL) 193 { 194 DebugInt3(); 195 return ERROR_NOT_ENOUGH_MEMORY; 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 DebugInt3(); 219 return ERROR_NOT_ENOUGH_MEMORY; 217 if(mailslot == NULL) 218 { 219 DebugInt3(); 220 return ERROR_NOT_ENOUGH_MEMORY; 220 221 } 221 222 pHMHandleData->dwUserData = (DWORD)mailslot;
Note:
See TracChangeset
for help on using the changeset viewer.