Ignore:
Timestamp:
Sep 15, 2001, 11:47:44 AM (24 years ago)
Author:
sandervl
Message:

restored old version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/memory.c

    r6645 r6712  
    1 /* $Id: memory.c,v 1.3 2001-09-05 12:14:25 bird Exp $ */
    21/*
    32 * CRTDLL memory functions
    4  *
     3 * 
    54 * Copyright 1996,1998 Marcus Meissner
    65 * Copyright 1996 Jukka Iivonen
     
    3332    VOID* result;
    3433    if(!(result = HeapAlloc(GetProcessHeap(),0,size)) && new_handler)
    35     (*new_handler)();
     34        (*new_handler)();
    3635    return result;
    3736}
     
    8079{
    8180  // return (_heapchk());
    82 
     81 
    8382  if (!HeapValidate( GetProcessHeap(), 0, NULL))
    8483  {
     
    9897{
    9998  // return (_heapmin());
    100 
     99 
    101100  if (!HeapCompact( GetProcessHeap(), 0 ))
    102101  {
     
    117116{
    118117  // return (_heapset(fill));
    119 
     118 
    120119  INT retVal;
    121120  struct _heapinfo heap;
     
    145144  phe.wFlags = next->_useflag == _USEDENTRY ? PROCESS_HEAP_ENTRY_BUSY : 0;
    146145
    147   if (phe.lpData && phe.wFlags & PROCESS_HEAP_ENTRY_BUSY &&
     146  if (phe.lpData && phe.wFlags & PROCESS_HEAP_ENTRY_BUSY && 
    148147      !HeapValidate( GetProcessHeap(), 0, phe.lpData ))
    149148  {
     
    181180{
    182181  // return (_msize(ptr));
    183 
     182 
    184183  LONG size = HeapSize(GetProcessHeap(),0,mem);
    185184  if (size == -1)
     
    216215/*********************************************************************
    217216 *                  malloc        (CRTDLL.424)
    218  *
     217 * 
    219218 * Alocate memory from the heap.
    220219 */
Note: See TracChangeset for help on using the changeset viewer.