include: Pack ACMDRVSTREAMHEADER since ACMSTREAMHEADER is packed.

Dylan Smith dylan.ah.smith at gmail.com
Sat May 28 17:02:49 CDT 2011


ACMDRVSTREAMHEADER is meant to be the same as ACMSTREAMHEADER except that
it defines fields in the dwReservedDriver field of ACMSTREAMHEADER.
However, ACMSTREAMHEADER is defined after including pshpack1.h in msacm.h,
so ACMDRVSTREAMHEADER must do the same to be compatible.
---
 include/msacmdrv.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/msacmdrv.h b/include/msacmdrv.h
index 6436404..3933ea1 100644
--- a/include/msacmdrv.h
+++ b/include/msacmdrv.h
@@ -109,6 +109,7 @@ typedef struct _ACMDRVSTREAMINSTANCE
 } ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
 
 typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
+#include <pshpack1.h>
 typedef struct _ACMDRVSTREAMHEADER {
   DWORD                cbStruct;
   DWORD                fdwStatus;
@@ -135,6 +136,7 @@ typedef struct _ACMDRVSTREAMHEADER {
   LPBYTE               pbPreparedDst;
   DWORD                cbPreparedDstLength;
 } ACMDRVSTREAMHEADER;
+#include <poppack.h>
 
 typedef struct _ACMDRVSTREAMSIZE
 {
-- 
1.7.4.1



More information about the wine-patches mailing list