[PATCH] GetPrivateProfileString should set buffer to "" if default value is not set
Christopher Smith
cbsmith at gmail.com
Fri Jun 20 19:23:47 CDT 2008
Our existing tests for GetPrivateProfileString were not checking to see
if strings were null terminated, and in particular, the case where
lpDefault wasn't set, the code actually *didn't* set the target buffer
to an empty string as it should. Valgrind noticed this problem, but the
unit tests didn't, so I've updated the unit tests to add this test *and*
fixed the relevant code to GetPrivateProfileString. Please find the
patch attached.
--Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://www.winehq.org/pipermail/wine-devel/attachments/20080620/e1ce713b/attachment.txt
More information about the wine-devel
mailing list