widl: Don't cast buffer pointers to long in generated server code.
This commit is contained in:
parent
6744d4e3ea
commit
fc3821f475
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue