Commit ab9dccda authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

comctl32: Avoid an unneeded lstrlenW() call.

parent b8953b2e
...@@ -2435,7 +2435,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -2435,7 +2435,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
btnInfo->btn = nmtb.tbButton; btnInfo->btn = nmtb.tbButton;
if (!(nmtb.tbButton.fsStyle & BTNS_SEP)) if (!(nmtb.tbButton.fsStyle & BTNS_SEP))
{ {
if (lstrlenW(nmtb.pszText)) if (*nmtb.pszText)
lstrcpyW(btnInfo->text, nmtb.pszText); lstrcpyW(btnInfo->text, nmtb.pszText);
else if (nmtb.tbButton.iString >= 0 && else if (nmtb.tbButton.iString >= 0 &&
nmtb.tbButton.iString < infoPtr->nNumStrings) nmtb.tbButton.iString < infoPtr->nNumStrings)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment