Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.2 KiB

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: w32new.cxx
//
// Contents: memory management
//
// Functions: operator new
// operator delete
//--------------------------------------------------------------------------
#include <ole2int.h>
#include <memapi.hxx>
//+---------------------------------------------------------------------------
//
// Function: operator new, public
//
// Synopsis: Global operator new which does not throw exceptions.
//
// Arguments: [size] -- Size of the memory to allocate.
//
// Returns: A pointer to the allocated memory. Is *NOT* initialized to 0!
//
//----------------------------------------------------------------------------
void* _CRTAPI1
operator new (size_t size)
{
return(PrivMemAlloc(size));
}
//+-------------------------------------------------------------------------
//
// Function: ::operator delete
//
// Synopsis: Free a block of memory
//
// Arguments: [lpv] - block to free.
//
//--------------------------------------------------------------------------
void _CRTAPI1 operator delete(void FAR* lpv)
{
PrivMemFree(lpv);
}