Robert Shearman : widl: Create the correct variable type for parameters with more than one level of indirection .

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 31 13:05:00 CST 2006


Module: wine
Branch: refs/heads/master
Commit: d82bb4ade916e3928537ba509090214d7a347618
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=d82bb4ade916e3928537ba509090214d7a347618

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Mar 31 12:49:57 2006 +0100

widl: Create the correct variable type for parameters with more than one level of indirection.

---

 tools/widl/server.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/widl/server.c b/tools/widl/server.c
index 8261dc7..b3c8c65 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -108,8 +108,11 @@ static void declare_args(const func_t *f
 
         if (!in_attr && !is_attr(var->attrs, ATTR_STRING))
         {
+            int indirection;
             print_server("");
             write_type(server, var->type, NULL, var->tname);
+            for (indirection = 0; indirection < var->ptr_level - 1; indirection++)
+                fprintf(server, "*");
             fprintf(server, " _W%u;\n", i++);
         }
 




More information about the wine-cvs mailing list