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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user