Ignore:
Timestamp:
Nov 29, 2001, 12:33:37 AM (24 years ago)
Author:
phaller
Message:

Fixes in HandleManager and Device Handlers

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 sandervl Exp $
     1/* $Id: hmmailslot.cpp,v 1.4 2001-11-28 23:33:36 phaller Exp $
    22 *
    33 * Win32 mailslot APIs
     
    190190
    191191  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;
    196196  }
    197197  strcpy(pipename, "\\\\.\\pipe\\");
     
    215215  //todo: lookup name and fail if exists
    216216  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;
    220221  }
    221222  pHMHandleData->dwUserData = (DWORD)mailslot;
Note: See TracChangeset for help on using the changeset viewer.