Thomas Weidenmueller : widl: Fix updating the proc offset.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 19 03:35:21 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: af994f4e4f7b417e37239f7d44fb8b258bcfb0ec
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=af994f4e4f7b417e37239f7d44fb8b258bcfb0ec
Author: Thomas Weidenmueller <wine-patches at reactsoft.com>
Date: Sun Jun 18 19:45:50 2006 +0200
widl: Fix updating the proc offset.
---
tools/widl/client.c | 6 +++---
tools/widl/server.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/widl/client.c b/tools/widl/client.c
index 39ab18a..6f8773e 100644
--- a/tools/widl/client.c
+++ b/tools/widl/client.c
@@ -271,14 +271,14 @@ static void write_function_stubs(type_t
while (NEXT_LINK(var)) var = NEXT_LINK(var);
while (var)
{
- proc_offset += get_size_procformatstring_var(var);
+ *proc_offset += get_size_procformatstring_var(var);
var = PREV_LINK(var);
}
}
if (!is_void(def->type, NULL))
- proc_offset += get_size_procformatstring_var(def);
+ *proc_offset += get_size_procformatstring_var(def);
else
- proc_offset += 2; /* FC_END and FC_PAD */
+ *proc_offset += 2; /* FC_END and FC_PAD */
indent--;
print_client("}\n");
diff --git a/tools/widl/server.c b/tools/widl/server.c
index 97f5102..72d5ae7 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -276,7 +276,7 @@ static void write_function_stubs(type_t
print_server("NdrConvert(\n");
indent++;
print_server("(PMIDL_STUB_MESSAGE)&_StubMsg,\n");
- print_server("(PFORMAT_STRING)&__MIDL_ProcFormatString.Format[%u]);\n", proc_offset);
+ print_server("(PFORMAT_STRING)&__MIDL_ProcFormatString.Format[%u]);\n", *proc_offset);
indent -= 2;
fprintf(server, "\n");
@@ -422,14 +422,14 @@ static void write_function_stubs(type_t
while (NEXT_LINK(var)) var = NEXT_LINK(var);
while (var)
{
- proc_offset += get_size_procformatstring_var(var);
+ *proc_offset += get_size_procformatstring_var(var);
var = PREV_LINK(var);
}
}
if (!is_void(def->type, NULL))
- proc_offset += get_size_procformatstring_var(def);
+ *proc_offset += get_size_procformatstring_var(def);
else
- proc_offset += 2; /* FC_END and FC_PAD */
+ *proc_offset += 2; /* FC_END and FC_PAD */
func = PREV_LINK(func);
}
More information about the wine-cvs
mailing list