Check for an empty string not a NULL pointer.

This commit is contained in:
James Hawkins 2005-09-19 14:31:45 +00:00 committed by Alexandre Julliard
parent 5387b672a3
commit 13ee51e236

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)