Leaked source code of windows server 2003
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.

14 lines
286 B

  1. //
  2. // Copyright (c) 1998 - 1999 Microsoft Corporation
  3. //
  4. inline void* __cdecl operator new(size_t nSize)
  5. {
  6. // return pointer to allocated memory
  7. return DrvMemAllocZ(nSize);
  8. }
  9. inline void __cdecl operator delete(void *p)
  10. {
  11. if (p)
  12. DrvMemFree(p);
  13. }