Ignore:
Timestamp:
Jun 17, 1999, 8:44:06 PM (26 years ago)
Author:
phaller
Message:

Fix: Bugfix in handlemanager

File:
1 edited

Legend:

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

    r111 r113  
    1 /* $Id: hmopen32.cpp,v 1.1 1999-06-17 18:21:43 phaller Exp $ */
     1/* $Id: hmopen32.cpp,v 1.2 1999-06-17 18:44:06 phaller Exp $ */
    22
    33/*
     
    8787{
    8888  HFILE hFile;
     89  HFILE hTemplate;
    8990
    9091  dprintf(("KERNEL32: HandleManager::Open32::CreateFile %s(%s,%08x,%08x,%08x) - stub?\n",
     
    100101    lpFileName+=4;
    101102
     103  // create from template
     104  if (pHMHandleDataTemplate != NULL)
     105     hTemplate = pHMHandleDataTemplate->hWinHandle;
     106  else
     107     hTemplate = 0;
     108
    102109  hFile = O32_CreateFile(lpFileName,
    103110                         pHMHandleData->dwAccess,
    104111                         pHMHandleData->dwShare,
    105                          (PSECURITY_ATTRIBUTES)lpSecurityAttributes,
     112                         //(LPSECURITY_ATTRIBUTES)lpSecurityAttributes,
     113                         NULL,
    106114                         pHMHandleData->dwCreation,
    107115                         pHMHandleData->dwFlags,
    108                          pHMHandleDataTemplate->hWinHandle);
     116                         hTemplate);
    109117  if (hFile != INVALID_HANDLE_ERROR)
     118  {
    110119     pHMHandleData->hWinHandle = hFile;
    111 
    112   return(hFile);
     120     return (NO_ERROR);
     121  }
     122  else
     123    return(O32_GetLastError());
    113124}
    114125
Note: See TracChangeset for help on using the changeset viewer.