Robert Shearman : widl: Properly size the return value procformat.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 2 04:55:46 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 90decb631cef75e946e124eec8285cf71ed85498
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=90decb631cef75e946e124eec8285cf71ed85498
Author: Robert Shearman <rob at codeweavers.com>
Date: Thu Jun 1 15:40:22 2006 +0100
widl: Properly size the return value procformat.
---
tools/widl/typegen.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 2a56989..19e4664 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1892,8 +1892,13 @@ size_t get_size_procformatstring(const i
}
}
+ var = func->def;
/* return value size */
- size += 2; /* FIXME: determine real size */
+ if (is_void(var->type, NULL))
+ size += 2;
+ else
+ size += get_size_procformatstring_var(var);
+
func = PREV_LINK(func);
}
}
More information about the wine-cvs
mailing list