[PATCH] [DbgHelp] fix packing

Eric Pouech eric.pouech at wanadoo.fr
Fri Feb 17 04:39:26 CST 2006


Packing for minidump structures is 4 bytes (not 8)

A+
---

 include/dbghelp.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/dbghelp.h b/include/dbghelp.h
index e529e42..09ce14f 100644
--- a/include/dbghelp.h
+++ b/include/dbghelp.h
@@ -362,6 +362,7 @@ typedef struct _DBGHELP_MODLOAD_DATA
  *       MiniDUMP        *
  *************************/
 
+#include <pshpack4.h>
 /* DebugHelp */
 
 #define MINIDUMP_SIGNATURE 0x504D444D /* 'MDMP' */
@@ -722,6 +723,7 @@ BOOL WINAPI MiniDumpWriteDump(HANDLE, DW
 BOOL WINAPI MiniDumpReadDumpStream(PVOID, ULONG, PMINIDUMP_DIRECTORY*, PVOID*,
                                    ULONG*);
 
+#include <poppack.h>
 
 /*************************
  *    MODULE handling    *





More information about the wine-patches mailing list