Alexandre Julliard : winebuild: Enforce header size alignment when outputting resources.
Alexandre Julliard
julliard at winehq.org
Tue Jun 23 10:02:48 CDT 2009
Module: wine
Branch: master
Commit: 2189b101de0449cbf19a155de73bb8d394065abe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2189b101de0449cbf19a155de73bb8d394065abe
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 23 13:25:50 2009 +0200
winebuild: Enforce header size alignment when outputting resources.
---
tools/winebuild/res32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/winebuild/res32.c b/tools/winebuild/res32.c
index 93d9c3c..0aaf2f0 100644
--- a/tools/winebuild/res32.c
+++ b/tools/winebuild/res32.c
@@ -577,7 +577,7 @@ void output_res_o_file( DLLSPEC *spec )
unsigned int header_size = get_resource_header_size( &spec->resources[i] );
put_dword( spec->resources[i].data_size );
- put_dword( header_size );
+ put_dword( (header_size + 3) & ~3 );
put_string( &spec->resources[i].type );
put_string( &spec->resources[i].name );
if ((unsigned long)file_out_pos & 2) put_word( 0 );
More information about the wine-cvs
mailing list