From 78c2694b4807df0fcf68c0ce8fbc4b2fc9767527 Mon Sep 17 00:00:00 2001 From: voroshil Date: Mon, 10 Sep 2007 18:55:52 +0000 Subject: Revert r24424. Fix is wrong, because 'packed' attribute can be placed before structure definition only when all members have this attribute. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24426 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/wine/pe_image.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'loader/wine/pe_image.h') diff --git a/loader/wine/pe_image.h b/loader/wine/pe_image.h index 4891d3e302..3f550ba467 100644 --- a/loader/wine/pe_image.h +++ b/loader/wine/pe_image.h @@ -54,19 +54,19 @@ extern PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY,LPCWS typedef DWORD CALLBACK (*DLLENTRYPROC)(HMODULE,DWORD,LPVOID); -typedef struct WINE_PACKED { - WORD popl; /* 0x8f 0x05 */ - DWORD addr_popped; /* ... */ - BYTE pushl1; /* 0x68 */ - DWORD newret; /* ... */ - BYTE pushl2; /* 0x68 */ - DWORD origfun; /* original function */ - BYTE ret1; /* 0xc3 */ - WORD addesp; /* 0x83 0xc4 */ - BYTE nrofargs; /* nr of arguments to add esp, */ - BYTE pushl3; /* 0x68 */ - DWORD oldret; /* Filled out from popl above */ - BYTE ret2; /* 0xc3 */ +typedef struct { + WORD popl WINE_PACKED; /* 0x8f 0x05 */ + DWORD addr_popped WINE_PACKED;/* ... */ + BYTE pushl1 WINE_PACKED; /* 0x68 */ + DWORD newret WINE_PACKED; /* ... */ + BYTE pushl2 WINE_PACKED; /* 0x68 */ + DWORD origfun WINE_PACKED; /* original function */ + BYTE ret1 WINE_PACKED; /* 0xc3 */ + WORD addesp WINE_PACKED; /* 0x83 0xc4 */ + BYTE nrofargs WINE_PACKED; /* nr of arguments to add esp, */ + BYTE pushl3 WINE_PACKED; /* 0x68 */ + DWORD oldret WINE_PACKED; /* Filled out from popl above */ + BYTE ret2 WINE_PACKED; /* 0xc3 */ } ELF_STDCALL_STUB; typedef struct { -- cgit v1.2.3