ntdll: tests/file.c: actually verify right bytes received in aio test [try 3]
zac at zacbrown.org
Mon Jun 2 15:24:16 CDT 2008
Actually send a known value and check it against the received value.
This fixes the valgrind warning:
Syscall param write(buf) points to uninitialised byte(s)
at (within /lib/ld-2.6.1.so)
by WriteFile (file.c:559)
by test_iocp_fileio (file.c:549)
by test_iocompletion (file.c:605)
by func_file (file.c:633)
by run_test (test.h:414)
by main (test.h:463)
Uninitialised value was created by a stack allocation
at test_iocp_fileio (file.c:503)
I have more improvements to the test, but since my bigger patch was rejected I
figured a smaller patch would be better to start with.
Thanks to Dan Kegel & James Hawkins for feedback.
This test passes on Wine (latest git) and Windows XP.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080602/26a49a99/attachment.bin
More information about the wine-patches