Clear padding in the buffer due to alignment.
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Dec 15 22:29:25 CST 2007
"Robert Shearman" <rob at codeweavers.com> wrote:
> This isn't done in MIDL, but I think it's desirable both for silencing
> Valgrind warnings and for security purposes (fixes potential for leaking
> information to remote computers or other processes).
> + print_file(file, indent, "memset(_StubMsg.Buffer, 0, ((long)_StubMsg.Buffer) & 0x%x);\n", alignment - 1);
Is it possible to make it 64-bit and Wine/Windows compatible by using
ULONG_PTR instead of long?
--
Dmitry.
More information about the wine-devel
mailing list