Commit 13ee51e2 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Check for an empty string not a NULL pointer.

parent 5387b672
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment