]> git.saurik.com Git - wxWidgets.git/commit
Fix off by one errors in wxURLDataObject.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Aug 2009 17:25:28 +0000 (17:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Aug 2009 17:25:28 +0000 (17:25 +0000)
commitcd67a80a9aaecc8646d42863305d5fcee76fe51e
treead336c99f150c7086293e62b2620b18ca0cfaece
parent69d31e313035d5e22d9400ec946f6007f710910c
Fix off by one errors in wxURLDataObject.

wxTextDataObject::SetData() adds the terminating NUL automatically so there is
no need to add it to the length when calling it from wxURLDataObject::SetURL().

This change is necessary to fix the unit test in the upcoming fix for #11102.

See #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/ole/dataobj.cpp