comctl32/toolbar: fix TB_GETBUTTONTEXTA oblomov/master
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 23 Apr 2009 15:59:19 +0000 (17:59 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 7 May 2009 08:54:08 +0000 (10:54 +0200)
commit2252cdfcb215b0e72ddcf1077fd234d8511c6168
treef4f04daec32ed4e3b9e44713b186aaa86cd3377e
parent16137b0226e9e0c30f05d30721a1be04b042e068
comctl32/toolbar: fix TB_GETBUTTONTEXTA

When a null lParam is passed to TB_GETBUTTONTEXTA, we should not return
-1 but the string size. This is achieved by not bailing out early and
by setting the dstlen parameter to WideCharToMultiByte appropriately if
lParam is zero.
dlls/comctl32/toolbar.c