Ignore:
Timestamp:
Oct 1, 1999, 6:03:10 PM (26 years ago)
Author:
sandervl
Message:

HeapReAlloc change (for wine controls)

File:
1 edited

Legend:

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

    r672 r1104  
    1 /* $Id: os2heap.cpp,v 1.9 1999-08-25 00:03:50 phaller Exp $ */
     1/* $Id: os2heap.cpp,v 1.10 1999-10-01 16:03:10 sandervl Exp $ */
    22
    33/*
     
    66 * Copyright 1998 Sander van Leeuwen
    77 *
     8 *
     9 * NOTE: ReAlloc allocates memory using Alloc if memory pointer == NULL
     10 *       WINE controls depend on this, even though it apparently
     11 *       doesn't work like this in Windows.
    812 *
    913 * Project Odin Software License can be found in LICENSE.TXT
     
    235239
    236240  if (dwBytes == 0) return NULL;         // intercept stupid parameters
    237   if (lpMem == 0)   return NULL;
     241 
     242  //NOTE: Allocate memory using Alloc -> WINE controls depend on this, even
     243  //      though it apparently doesn't work in Windows.
     244  if (lpMem == 0)   return Alloc(dwFlags, dwBytes);
     245//  if (lpMem == 0)   return NULL;
    238246
    239247  if (Size(0,lpMem) == dwBytes) return lpMem; // if reallocation with same size
Note: See TracChangeset for help on using the changeset viewer.