From 2189b101de0449cbf19a155de73bb8d394065abe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Jun 2009 13:25:50 +0200 Subject: [PATCH] winebuild: Enforce header size alignment when outputting resources. --- tools/winebuild/res32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winebuild/res32.c b/tools/winebuild/res32.c index 93d9c3c8c15..0aaf2f0f51a 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 );