Changeset 4566 for trunk/src


Ignore:
Timestamp:
Nov 6, 2000, 9:01:26 PM (25 years ago)
Author:
sandervl
Message:

MN: HeapReAlloc fix for shrinking allocation (return same pointer)

File:
1 edited

Legend:

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

    r4224 r4566  
    1 /* $Id: heap.cpp,v 1.22 2000-09-08 18:07:50 sandervl Exp $ */
     1/* $Id: heap.cpp,v 1.23 2000-11-06 20:01:26 sandervl Exp $ */
    22
    33/*
     
    5151        return(NULL);
    5252
     53  //Some apps (i.e. nt's cmd.exe) assume the returned pointer is the same as the old one!
     54  if(curheap->Size(0, lpMem) > dwBytes)
     55        return lpMem;
     56
    5357  return(curheap->ReAlloc(dwFlags, lpMem, dwBytes));
    5458}
Note: See TracChangeset for help on using the changeset viewer.