Alexandre Julliard : widl: Fix alignment check for struct members format string.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 25 06:12:09 CST 2007


Module: wine
Branch: master
Commit: 4f106ca398352d6e453c75dd4fd73cbbbe978a4b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f106ca398352d6e453c75dd4fd73cbbbe978a4b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jan 24 20:08:50 2007 +0100

widl: Fix alignment check for struct members format string.

---

 tools/widl/typegen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 585ecc1..9944b07 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1051,7 +1051,7 @@ static size_t write_struct_members(FILE
             error("Unsupported member type 0x%x\n", rtype);
     }
 
-    if (typestring_size % 1)
+    if (!(typestring_size % 2))
     {
         print_file(file, 2, "0x%x,\t\t/* FC_PAD */\n", RPC_FC_PAD);
         typestring_size++;




More information about the wine-cvs mailing list