Robert Shearman : widl: There's no need to cast _StubMsg - it' s already of the correct type.

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


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

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

widl: There's no need to cast _StubMsg - it's already of the correct type.

---

 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 ed47c04..a8ab982 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -1422,7 +1422,7 @@ static void print_phase_function(FILE *f
 
     print_file(file, indent, "Ndr%s%s(\n", type, function);
     indent++;
-    print_file(file, indent, "(PMIDL_STUB_MESSAGE)&_StubMsg,\n");
+    print_file(file, indent, "&_StubMsg,\n");
     print_file(file, indent, "%s%s,\n",
                (phase == PHASE_UNMARSHAL) ? "(unsigned char **)&" : "(unsigned char *)",
                varname);




More information about the wine-cvs mailing list