mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NOTEPAD] Prevent some NULL pointer dereferences. CID 502217. By Ricardo Hanke. CORE-9337
svn path=/trunk/; revision=66607
This commit is contained in:
parent
63439e78ff
commit
e53889cf98
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue