Changeset 10109 for trunk/src


Ignore:
Timestamp:
May 23, 2003, 3:53:43 PM (22 years ago)
Author:
sandervl
Message:

ClearCommError: lpdwError is allowed to be NULL

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r10073 r10109  
    1 /* $Id: HandleManager.cpp,v 1.102 2003-05-06 12:06:07 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.103 2003-05-23 13:53:42 sandervl Exp $ */
    22
    33/*
     
    35643564  }
    35653565
    3566   if(IsBadWritePtr(lpdwErrors,sizeof(DWORD)) ||
     3566  if((lpdwErrors != NULL && IsBadWritePtr(lpdwErrors,sizeof(DWORD))) ||
    35673567     (NULL!=lpcst && IsBadWritePtr(lpcst,sizeof(COMSTAT)) ) )
    35683568  {
  • trunk/src/kernel32/hmcomm.cpp

    r9079 r10109  
    1 /* $Id: hmcomm.cpp,v 1.38 2002-08-21 17:23:12 sandervl Exp $ */
     1/* $Id: hmcomm.cpp,v 1.39 2003-05-23 13:53:43 sandervl Exp $ */
    22
    33/*
     
    888888{
    889889  APIRET rc;
    890   ULONG ulLen;
     890  ULONG ulLen, dwError = 0;
    891891  USHORT COMErr;
     892
     893  if(lpdwErrors == NULL)
     894     lpdwErrors = &dwError;
    892895
    893896  dprintf(("HMDeviceCommClass::ClearCommError"));
Note: See TracChangeset for help on using the changeset viewer.