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.

43 lines
716 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. ntrtlbuffer3cpp.cpp
  5. Abstract:
  6. Author:
  7. Jay Krell (JayKrell) January 2002
  8. Environment:
  9. Revision History:
  10. --*/
  11. #include "nt.h"
  12. #include "ntrtl.h"
  13. #if defined(NTOS_KERNEL_RUNTIME)
  14. #else
  15. #include "nturtl.h"
  16. #include "windows.h"
  17. #endif
  18. #include "ntrtlbuffer3.h"
  19. #if defined(__cplusplus)
  20. PVOID __fastcall RtlBuffer3Allocator_OperatorNew(PVOID VoidContext, SIZE_T NumberOfBytes)
  21. {
  22. #if defined(new)
  23. #undef new
  24. #endif
  25. return operator new(NumberOfBytes);
  26. }
  27. VOID __fastcall RtlBuffer3Allocator_OperatorDelete(PVOID VoidContext, PVOID Pointer)
  28. {
  29. operator delete(Pointer);
  30. }
  31. #endif