Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

25 lines
396 B

// Copyright (c) 1999 Microsoft Corporation
// OpNew.cpp
//
// Override operator new[] so that we ignore the new_handler mechanism.
//
//
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "Debug.h"
LPVOID __cdecl operator new(size_t cbBuffer)
{
LPVOID p;
p = malloc(cbBuffer ? cbBuffer : 1);
return p;
}
void __cdecl operator delete(LPVOID p)
{
free(p);
}