Daniel Zimmermann : widl: Fix check for interface type in get_size_procformatstring.

Alexandre Julliard julliard at winehq.org
Tue Nov 18 09:27:19 CST 2008


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

Author: Daniel Zimmermann <netzimme at aim.com>
Date:   Mon Nov 17 15:34:01 2008 -0500

widl: Fix check for interface type in get_size_procformatstring.

---

 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 fcb141e..45467e5 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3137,7 +3137,7 @@ size_t get_size_procformatstring(const statement_list_t *stmts, type_pred_t pred
             size += get_size_procformatstring(stmt->u.lib->stmts, pred) - 1;
             continue;
         }
-        else if (stmt->type != STMT_TYPE && stmt->u.type->type != RPC_FC_IP)
+        else if (stmt->type != STMT_TYPE || stmt->u.type->type != RPC_FC_IP)
             continue;
 
         iface = stmt->u.type;




More information about the wine-cvs mailing list