summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/include/nterr.h5
1 files changed, 5 insertions, 0 deletions
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)