Rob Shearman : widl: Add support for generating code for out-only context handles by calling NdrContextHandleInitialize .

Alexandre Julliard julliard at winehq.org
Wed Dec 26 10:05:06 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Tue Dec 25 19:08:21 2007 +0000

widl: Add support for generating code for out-only context handles by calling NdrContextHandleInitialize.

---

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

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 57c432f..dee5ad8 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3160,7 +3160,14 @@ void assign_stub_out_args( FILE *file, int indent, const func_t *func )
             print_file(file, indent, "");
             write_name(file, var);
 
-            if (var->type->size_is)
+            if (is_context_handle(var->type))
+            {
+                fprintf(file, " = NdrContextHandleInitialize(\n");
+                print_file(file, indent + 1, "&_StubMsg,\n");
+                print_file(file, indent + 1, "(PFORMAT_STRING)&__MIDL_TypeFormatString.Format[%d]);\n",
+                           var->type->typestring_offset);
+            }
+            else if (var->type->size_is)
             {
                 unsigned int size, align = 0;
                 type_t *type = var->type;




More information about the wine-cvs mailing list