Commit fc3821f4 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

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

parent 6744d4e3
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment