Ignore:
Timestamp:
Oct 28, 1999, 2:01:12 PM (26 years ago)
Author:
sandervl
Message:

misc changes

File:
1 edited

Legend:

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

    r1432 r1490  
    1 /* $Id: heapshared.cpp,v 1.1 1999-10-24 22:53:24 sandervl Exp $ */
     1/* $Id: heapshared.cpp,v 1.2 1999-10-28 12:01:12 sandervl Exp $ */
    22/*
    33 * Shared heap functions for OS/2
     
    55 * Initially commit 16 kb, add more when required
    66 *
    7  * NOTE: Hardcoded limit of 256 KB per process (increase when required)
     7 * NOTE: Hardcoded limit of 256 KB (increase when required)
    88 *
    99 * TODO: Not process/thread safe (initializing/destroying heap)
     
    1919#include <os2wrap.h>
    2020#include <misc.h>
    21 #include "heapshared.h"
     21#include <heapshared.h>
    2222
    2323//Global DLL Data
     
    6969                return FALSE;
    7070        }
     71        if(_uopen(sharedHeap) != 0) {
     72                dprintf(("InitializeSharedHeap: unable to open shared heap!"));
     73                return FALSE;
     74        }
    7175  }
    7276  refCount++;
     
    8892                pSharedMem = NULL;
    8993        }
     94  }
     95  else {
     96        _uclose(sharedHeap);
    9097  }
    9198}
Note: See TracChangeset for help on using the changeset viewer.