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

Dan Kegel dank at kegel.com
Sat Jun 7 06:35:29 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 warnings like:

 Syscall param writev(vector[...]) points to uninitialised byte(s)
    at  (within /lib/ld-2.5.so)
    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 : http://www.winehq.org/pipermail/wine-patches/attachments/20080607/39c55dc6/attachment.patch 


More information about the wine-patches mailing list