Author: tfaber
Date: Wed Apr 30 19:05:38 2014
New Revision: 63083
URL:
http://svn.reactos.org/svn/reactos?rev=63083&view=rev
Log:
[CRT]
- Fix potential null dereference in TRACE in _wfreopen. Patch by Víctor Martínez
CORE-8120 #resolve
Modified:
trunk/reactos/lib/sdk/crt/stdio/file.c
Modified: trunk/reactos/lib/sdk/crt/stdio/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?r…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Wed Apr 30 19:05:38 2014
@@ -2813,7 +2813,7 @@
{
int open_flags, stream_flags, fd;
- TRACE(":path (%p) mode (%s) file (%p) fd (%d)\n", debugstr_w(path),
debugstr_w(mode), file, file->_file);
+ TRACE(":path (%p) mode (%s) file (%p) fd (%d)\n", debugstr_w(path),
debugstr_w(mode), file, file ? file->_file : -1);
LOCK_FILES();
if (!file || ((fd = file->_file) < 0) || fd > fdend)