kernel32: initialize hole in struct in WaitNamedPipeW to avoid Valgrind warnings, take 2 (resend)

Dan Kegel dank at
Sun Jun 22 16:27:23 CDT 2008

Back in February, I tried doing this with a real memset,
but Alexandre demurred, probably objecting to the slight overhead.
So here's a version with no overhead unless you
have the Valgrind development headers installed,
and is done with Valgrind client notations.

Prevents valgrind warnings like:

 Syscall param writev(vector[...]) points to uninitialised byte(s)
   at  (within /lib/
   by  wine_server_call (server.c:244)
   by  server_ioctl_file (file.c:1027)
   by  NtFsControlFile (file.c:1241)
   by  WaitNamedPipeW (sync.c:1326)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32-sync.patch
Type: text/x-diff
Size: 927 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list