Check for an empty string not a NULL pointer.

oldstable
James Hawkins 2005-09-19 14:31:45 +00:00 committed by Alexandre Julliard
parent 5387b672a3
commit 13ee51e236
1 changed files with 2 additions and 2 deletions

View File

@ -335,10 +335,10 @@ static BOOL HH_AddNavigationPane(HHInfo *pHHInfo)
if (!hwndTabCtrl)
return FALSE;
if (pHHInfo->pHHWinType->pszToc)
if (*pHHInfo->pHHWinType->pszToc)
NP_CreateTab(pHHInfo->hInstance, hwndTabCtrl, IDS_CONTENTS, dwIndex++);
if (pHHInfo->pHHWinType->pszIndex)
if (*pHHInfo->pHHWinType->pszIndex)
NP_CreateTab(pHHInfo->hInstance, hwndTabCtrl, IDS_INDEX, dwIndex++);
if (pHHInfo->pHHWinType->fsWinProperties & HHWIN_PROP_TAB_SEARCH)