widl: Don't cast buffer pointers to long in generated server code.

This commit is contained in:
Robert Shearman 2005-12-12 12:12:06 +01:00 committed by Alexandre Julliard
parent 6744d4e3ea
commit fc3821f475
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ static void write_function_stubs(type_t *iface)
fprintf(server, "\n");
print_server("_pRpcMessage->BufferLength =\n");
indent++;
print_server("(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);\n");
print_server("(unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);\n");
indent--;
indent--;
fprintf(server, "}\n");