Changeset 1104 for trunk/src/kernel32/os2heap.cpp
- Timestamp:
- Oct 1, 1999, 6:03:10 PM (26 years ago)
- 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 phallerExp $ */1 /* $Id: os2heap.cpp,v 1.10 1999-10-01 16:03:10 sandervl Exp $ */ 2 2 3 3 /* … … 6 6 * Copyright 1998 Sander van Leeuwen 7 7 * 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. 8 12 * 9 13 * Project Odin Software License can be found in LICENSE.TXT … … 235 239 236 240 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; 238 246 239 247 if (Size(0,lpMem) == dwBytes) return lpMem; // if reallocation with same size
Note:
See TracChangeset
for help on using the changeset viewer.