From 5b04c3ea5aaf514a66bf5d06a606b3ec2b9ac1e7 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Tue, 14 Feb 2006 12:24:45 +0100 Subject: [PATCH] twain: Make structures respect 2 byte packing requirements. --- dlls/twain/twain.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/twain/twain.h b/dlls/twain/twain.h index de29252cf5d..b8d28784dd1 100644 --- a/dlls/twain/twain.h +++ b/dlls/twain/twain.h @@ -57,6 +57,9 @@ #include "windef.h" #include "winbase.h" +/* The Twain structures must be packed on 2 byte alignment */ +#include "pshpack2.h" + #undef FAR #define FAR #define huge @@ -1861,4 +1864,7 @@ typedef TW_UINT16 (*DSENTRYPROC)(pTW_IDENTITY, } #endif /* cplusplus */ +/* The Twain structures must be packed on 2 byte alignment */ +#include "poppack.h" + #endif /* TWAIN */ -- 2.11.4.GIT