[NOTEPAD] Prevent some NULL pointer dereferences. CID 502217. By Ricardo Hanke. CORE-9337

svn path=/trunk/; revision=66607
This commit is contained in:
Amine Khaldi 2015-03-08 13:16:46 +00:00
parent 63439e78ff
commit e53889cf98

View file

@ -116,6 +116,11 @@ NOTEPAD_FindTextAt(FINDREPLACE *pFindReplace, LPCTSTR pszText, int iTextLength,
BOOL bMatches;
size_t iTargetLength;
if ((!pFindReplace) || (!pszText))
{
return FALSE;
}
iTargetLength = _tcslen(pFindReplace->lpstrFindWhat);
/* Make proper comparison */