forked from Mirrors/wine-wine
Check for an empty string not a NULL pointer.
parent
5387b672a3
commit
13ee51e236
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue