Author: tfaber
Date: Thu Jul 25 20:29:23 2013
New Revision: 59585
URL:
http://svn.reactos.org/svn/reactos?rev=59585&view=rev
Log:
[NOTEPAD]
- Don't assume out parameter initialization on failure. Patch by Samuel Serapión
CORE-7292 #resolve
Modified:
trunk/reactos/base/applications/notepad/dialog.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] Thu Jul 25 20:29:23
2013
@@ -293,7 +293,7 @@
{
static const TCHAR dotlog[] = _T(".LOG");
HANDLE hFile;
- LPTSTR pszText;
+ LPTSTR pszText = NULL;
DWORD dwTextLen;
TCHAR log[5];