Ignore:
Timestamp:
Jul 13, 2001, 4:33:00 PM (24 years ago)
Author:
sandervl
Message:

null ptr check in lstrlenA/W

File:
1 edited

Legend:

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

    r6090 r6318  
    1 /* $Id: heapstring.cpp,v 1.40 2001-06-24 14:13:04 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.41 2001-07-13 14:33:00 sandervl Exp $ */
    22
    33/*
     
    5858           arg1));
    5959
     60  if(arg1 == NULL) {
     61      SetLastError(ERROR_INVALID_PARAMETER);
     62      return 0;
     63  }
    6064  return strlen(arg1);
    6165}
     
    7781{
    7882  int rc;
     83
     84  if(arg1 == NULL) {
     85      SetLastError( ERROR_INVALID_PARAMETER );
     86      return 0;
     87  }
    7988
    8089  rc = UniStrlen( (UniChar*)arg1);
Note: See TracChangeset for help on using the changeset viewer.