Bug 58221 don't use strlen to check if a string is of length 0

patch by aaronl@vitelus.com r=timeless sr=bz
This commit is contained in:
timeless@mozdev.org
2002-11-17 05:16:49 +00:00
parent 4f6c815545
commit 26d661bf38
38 changed files with 91 additions and 85 deletions

View File

@@ -100,7 +100,7 @@ static int getWindowStringLength(HWND hWnd, PSZ lpsz)
void SetDlgItemTextWrapped(HWND hWnd, int iID, PSZ szText)
{
HWND hWndStatic = WinWindowFromID(hWnd, iID);
if((szText == NULL) || (strlen(szText) == 0))
if(!szText || !*szText)
{
WinSetDlgItemText(hWnd, iID, "");
return;