Simplify definition of PIMAGE_NT_HEADERS
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 30 Mar 2010 05:22:15 +0000 (05:22 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 30 Mar 2010 05:22:15 +0000 (05:22 +0000)
svn path=/branches/header-work/; revision=46581

include/ddk/ntimage.h

index 8df9847..9703bb1 100644 (file)
@@ -403,22 +403,15 @@ typedef struct _IMAGE_NT_HEADERS {
 } IMAGE_NT_HEADERS32;
 
 #ifdef _WIN64
-typedef IMAGE_NT_HEADERS64                  IMAGE_NT_HEADERS;
+typedef IMAGE_NT_HEADERS64 IMAGE_NT_HEADERS;
 #else
-typedef IMAGE_NT_HEADERS32                  IMAGE_NT_HEADERS;
+typedef IMAGE_NT_HEADERS32 IMAGE_NT_HEADERS;
 #endif
 
 #ifndef _NTDDK_
-
-typedef struct _IMAGE_NT_HEADERS *PIMAGE_NT_HEADERS32;
-typedef struct _IMAGE_NT_HEADERS64 *PIMAGE_NT_HEADERS64;
-
-#ifdef _WIN64
-typedef PIMAGE_NT_HEADERS64                 PIMAGE_NT_HEADERS;
-#else
-typedef PIMAGE_NT_HEADERS32                 PIMAGE_NT_HEADERS;
-#endif
-
+typedef IMAGE_NT_HEADERS32 *PIMAGE_NT_HEADERS32;
+typedef IMAGE_NT_HEADERS64 *PIMAGE_NT_HEADERS64;
+typedef IMAGE_NT_HEADERS *PIMAGE_NT_HEADERS;
 #endif /* _NTDDK_ */
 
 //