From 810dffecc23a16dee1430a1fd6c833472835c013 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 18 Aug 2005 00:43:00 +0000 Subject: r9371: add the usefull trick hack for NT_STATUS_NO_MEMORY too metze (This used to be commit 9b9635833f44e63f8acfd619ae2ecc06f6b2312a) --- source4/include/nterr.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/include') diff --git a/source4/include/nterr.h b/source4/include/nterr.h index 1cf0b6a8d1..0395460c9a 100644 --- a/source4/include/nterr.h +++ b/source4/include/nterr.h @@ -81,7 +81,12 @@ #define NT_STATUS_UNRECOGNIZED_MEDIA NT_STATUS(0xC0000000 | 0x0014) #define NT_STATUS_NONEXISTENT_SECTOR NT_STATUS(0xC0000000 | 0x0015) #define NT_STATUS_MORE_PROCESSING_REQUIRED NT_STATUS(0xC0000000 | 0x0016) +#if 0 +/* this demonstrates a little trick when tracking down error codes */ +#define NT_STATUS_NO_MEMORY (printf("no memory at %s\n", __location__), NT_STATUS(0xC0000000 | 0x0017)) +#else #define NT_STATUS_NO_MEMORY NT_STATUS(0xC0000000 | 0x0017) +#endif #define NT_STATUS_CONFLICTING_ADDRESSES NT_STATUS(0xC0000000 | 0x0018) #define NT_STATUS_NOT_MAPPED_VIEW NT_STATUS(0xC0000000 | 0x0019) #define NT_STATUS_UNABLE_TO_FREE_VM NT_STATUS(0xC0000000 | 0x001a) -- cgit