mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
comctl32: Avoid an unneeded lstrlenW() call.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b8953b2ece
commit
ab9dccda63
|
@ -2435,7 +2435,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
btnInfo->btn = nmtb.tbButton;
|
||||
if (!(nmtb.tbButton.fsStyle & BTNS_SEP))
|
||||
{
|
||||
if (lstrlenW(nmtb.pszText))
|
||||
if (*nmtb.pszText)
|
||||
lstrcpyW(btnInfo->text, nmtb.pszText);
|
||||
else if (nmtb.tbButton.iString >= 0 &&
|
||||
nmtb.tbButton.iString < infoPtr->nNumStrings)
|
||||
|
|
Loading…
Reference in a new issue