widl: Fix updating the proc offset.
This commit is contained in:
parent
1b7da2379f
commit
af994f4e4f
|
@ -271,14 +271,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
|
||||||
while (NEXT_LINK(var)) var = NEXT_LINK(var);
|
while (NEXT_LINK(var)) var = NEXT_LINK(var);
|
||||||
while (var)
|
while (var)
|
||||||
{
|
{
|
||||||
proc_offset += get_size_procformatstring_var(var);
|
*proc_offset += get_size_procformatstring_var(var);
|
||||||
var = PREV_LINK(var);
|
var = PREV_LINK(var);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!is_void(def->type, NULL))
|
if (!is_void(def->type, NULL))
|
||||||
proc_offset += get_size_procformatstring_var(def);
|
*proc_offset += get_size_procformatstring_var(def);
|
||||||
else
|
else
|
||||||
proc_offset += 2; /* FC_END and FC_PAD */
|
*proc_offset += 2; /* FC_END and FC_PAD */
|
||||||
|
|
||||||
indent--;
|
indent--;
|
||||||
print_client("}\n");
|
print_client("}\n");
|
||||||
|
|
|
@ -276,7 +276,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
|
||||||
print_server("NdrConvert(\n");
|
print_server("NdrConvert(\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_server("(PMIDL_STUB_MESSAGE)&_StubMsg,\n");
|
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;
|
indent -= 2;
|
||||||
fprintf(server, "\n");
|
fprintf(server, "\n");
|
||||||
|
|
||||||
|
@ -422,14 +422,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
|
||||||
while (NEXT_LINK(var)) var = NEXT_LINK(var);
|
while (NEXT_LINK(var)) var = NEXT_LINK(var);
|
||||||
while (var)
|
while (var)
|
||||||
{
|
{
|
||||||
proc_offset += get_size_procformatstring_var(var);
|
*proc_offset += get_size_procformatstring_var(var);
|
||||||
var = PREV_LINK(var);
|
var = PREV_LINK(var);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!is_void(def->type, NULL))
|
if (!is_void(def->type, NULL))
|
||||||
proc_offset += get_size_procformatstring_var(def);
|
*proc_offset += get_size_procformatstring_var(def);
|
||||||
else
|
else
|
||||||
proc_offset += 2; /* FC_END and FC_PAD */
|
*proc_offset += 2; /* FC_END and FC_PAD */
|
||||||
|
|
||||||
func = PREV_LINK(func);
|
func = PREV_LINK(func);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue