Fix gcc warnings in generated client stub.
Modified: trunk/reactos/tools/widl/ChangeLog
Modified: trunk/reactos/tools/widl/client.c

Modified: trunk/reactos/tools/widl/ChangeLog
--- trunk/reactos/tools/widl/ChangeLog	2005-03-13 14:29:09 UTC (rev 14008)
+++ trunk/reactos/tools/widl/ChangeLog	2005-03-13 14:49:59 UTC (rev 14009)
@@ -1,8 +1,15 @@
 ChangeLog
 
-2005-03-12 ekohl
+2005-03-13 ekohl
 
    tools/widl/client.c
+
+Fix gcc warnings in generated client stub.
+
+
+2005-03-13 ekohl
+
+   tools/widl/client.c
    tools/widl/server.c
 
 Implement [string] attribute for pointers to char and wchar_t.

Modified: trunk/reactos/tools/widl/client.c
--- trunk/reactos/tools/widl/client.c	2005-03-13 14:29:09 UTC (rev 14008)
+++ trunk/reactos/tools/widl/client.c	2005-03-13 14:49:59 UTC (rev 14009)
@@ -273,6 +273,8 @@
             {
                 size = 12;
                 alignment = 0;
+                if (last_size != -1)
+                    fprintf(client, " +");
                 fprintf(client, " %dU", (size == 0) ? 0 : size + alignment);
                 nothing_printed = 0;
             }
@@ -880,8 +882,11 @@
 
 static void write_bindinghandledecl(type_t *iface)
 {
-    print_client("static RPC_BINDING_HANDLE %s__MIDL_AutoBindHandle;\n", iface->name);
-    fprintf(client, "\n");
+    if (!get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE))
+    {
+        print_client("static RPC_BINDING_HANDLE %s__MIDL_AutoBindHandle;\n", iface->name);
+        fprintf(client, "\n");
+    }
 }
 
 
@@ -903,9 +908,9 @@
     print_client("MIDL_user_allocate,\n");
     print_client("MIDL_user_free,\n");
     if (implicit_handle)
-        print_client("&%s,\n", implicit_handle);
+        print_client("{&%s},\n", implicit_handle);
     else
-        print_client("&%s__MIDL_AutoBindHandle,\n", iface->name);
+        print_client("{&%s__MIDL_AutoBindHandle},\n", iface->name);
     print_client("0,\n");
     print_client("0,\n");
     print_client("0,\n");