kernel32/tests: fni->FileName is not nul terminated in test_readdirectorychanges_cr

Dan Kegel dank at
Sat Oct 15 13:27:34 CDT 2011

Fixes read buffer overruns during "make change.ok".

Clears up several valgrind warnings of the form

Conditional jump or move depends on uninitialised value(s)
   at wine_dbgstr_wn (test.h:471)
   by test_readdirectorychanges_cr (test.h:66)
   by func_change (change.c:1103)
   by run_test (test.h:556)
   by main (test.h:624)
 Uninitialised value was created by a stack allocation
   at test_readdirectorychanges_cr (change.c:794)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32-change-filenamelen.patch
Type: text/x-patch
Size: 4568 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list