Ignore:
Timestamp:
May 15, 2001, 7:01:15 PM (24 years ago)
Author:
sandervl
Message:

OpenFile now checks for null pointer and returns ERROR_INVALID_NAME

File:
1 edited

Legend:

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

    r5587 r5715  
    1 /* $Id: hmfile.cpp,v 1.26 2001-04-26 13:22:45 sandervl Exp $ */
     1/* $Id: hmfile.cpp,v 1.27 2001-05-15 17:01:15 sandervl Exp $ */
    22
    33/*
     
    179179        lpFileName = (LPSTR)pOFStruct->szPathName;
    180180  else  memset(pOFStruct, 0, sizeof(OFSTRUCT));
     181
     182  if(lpFileName == NULL) {
     183      dprintf(("Invalid name (NULL)!"));
     184      SetLastError(ERROR_INVALID_NAME);
     185      return HFILE_ERROR;
     186  }
    181187
    182188  if(strcmp(lpFileName,       // "support" for local unc names
Note: See TracChangeset for help on using the changeset viewer.