don't generate lvalue assignment code
Modified: trunk/reactos/tools/widl/ChangeLog
Modified: trunk/reactos/tools/widl/server.c
_____
Modified: trunk/reactos/tools/widl/ChangeLog
--- trunk/reactos/tools/widl/ChangeLog 2005-05-08 18:20:39 UTC (rev
15144)
+++ trunk/reactos/tools/widl/ChangeLog 2005-05-08 18:32:57 UTC (rev
15145)
@@ -2,6 +2,12 @@
2004-05-08 weiden
+ tools/widl/server.c
+
+Don't generate lvalue assignment code.
+
+2004-05-08 weiden
+
tools/widl/client.c
tools/widl/proxy.c
tools/widl/server.c
_____
Modified: trunk/reactos/tools/widl/server.c
--- trunk/reactos/tools/widl/server.c 2005-05-08 18:20:39 UTC (rev
15144)
+++ trunk/reactos/tools/widl/server.c 2005-05-08 18:32:57 UTC (rev
15145)
@@ -638,16 +638,16 @@
{
if (var->type->type == RPC_FC_RP)
{
- print_server("(");
+ print_server("*(");
write_type(server, var->type, NULL, var->tname);
- fprintf(server, ")%s = 0;\n", var->name);
+ fprintf(server, "*)&%s = NULL;\n", var->name);
}
}
else if (var->ptr_level == 1)
{
- print_server("(");
+ print_server("*(");
write_type(server, var->type, NULL, var->tname);
- fprintf(server, " __RPC_FAR *)%s = 0;\n", var->name);
+ fprintf(server, " __RPC_FAR *)&%s = 0;\n", var->name);
}
else if (var->ptr_level > 1)
{