kernel32 [2/2]: Don't get the profile string if the buffer length is zero
James Hawkins
jhawkins at codeweavers.com
Thu Jul 17 12:27:14 CDT 2008
Hi,
Fixes this valgrind warning:
Conditional jump or move depends on uninitialised value(s)
at strlenW (unicode.h:212)
by PROFILE_GetString (profile.c:976)
by PROFILE_GetPrivateProfileString (profile.c:1110)
by GetPrivateProfileStringW (profile.c:1224)
by GetPrivateProfileStringA (profile.c:1192)
by test_GetPrivateProfileString (profile.c:511)
by func_profile (profile.c:611)
by run_test (test.h:488)
by main (test.h:537)
Uninitialised value was created by a client request
at mark_block_uninitialized (heap.c:164)
by RtlAllocateHeap (heap.c:1239)
by HeapAlloc (heap.c:276)
by GetPrivateProfileStringA (profile.c:1182)
by test_GetPrivateProfileString (profile.c:511)
by func_profile (profile.c:611)
by run_test (test.h:488)
by main (test.h:537)
Changelog:
* Don't get the profile string if the buffer length is zero.
dlls/kernel32/profile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0004-Don-t-get-the-profile-string-if-the-buffer-length-is.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080717/39ef9e0b/attachment.txt
More information about the wine-patches
mailing list