From 1a716c70f7b5bd366177de15ebd9bb52082c6b4a Mon Sep 17 00:00:00 2001 From: cypherpunk Date: Thu, 13 Mar 2014 00:31:12 +0100 Subject: [PATCH] fix for correct struct alignment --- TitanEngine/stdafx.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TitanEngine/stdafx.h b/TitanEngine/stdafx.h index 248f497..ccf8f95 100644 --- a/TitanEngine/stdafx.h +++ b/TitanEngine/stdafx.h @@ -67,6 +67,9 @@ #define UE_OPTION_IMPORTER_RETURN_NEAREST_APINAME 12 #define UE_OPTION_IMPORTER_RETURN_API_ORDINAL_NUMBER 13 +#pragma pack(push) +#pragma pack(1) + typedef struct { ULONG_PTR BreakPointAddress; @@ -848,8 +851,6 @@ typedef struct _RTL_USER_PROCESS_PARAMETERS { //Evolution of Process Environment Block (PEB) http://blog.rewolf.pl/blog/?p=573 //March 2, 2013 / ReWolf posted in programming, reverse engineering, source code, x64 / -#pragma pack(push) -#pragma pack(1) template struct LIST_ENTRY_T {