Module: wine Branch: master Commit: 32cf944e9cf136254b0ac19914e3bf52ad13f193 URL: http://source.winehq.org/git/wine.git/?a=commit;h=32cf944e9cf136254b0ac19914...
Author: Rob Shearman rob@codeweavers.com Date: Fri Dec 14 19:54:25 2007 +0000
widl: Clear padding in the buffer due to alignment.
---
tools/widl/typegen.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 6dbbf7f..3aea62e 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -2553,6 +2553,7 @@ void print_phase_basetype(FILE *file, int indent, enum remoting_phase phase, size = 0; }
+ print_file(file, indent, "memset(_StubMsg.Buffer, 0, ((long)_StubMsg.Buffer) & 0x%x);\n", alignment - 1); print_file(file, indent, "_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + %u) & ~0x%x);\n", alignment - 1, alignment - 1);