From 174da99a465d640a297d18148b01caa464ac30b3 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Wed, 30 Apr 2014 19:05:38 +0000 Subject: [PATCH 1/1] =?utf8?q?[CRT]=20-=20Fix=20potential=20null=20derefer?= =?utf8?q?ence=20in=20TRACE=20in=20=5Fwfreopen.=20Patch=20by=20V=C3=ADctor?= =?utf8?q?=20Mart=C3=ADnez=20CORE-8120=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=63083 --- reactos/lib/sdk/crt/stdio/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index a08d59e16f8..52e7f09f244 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -2813,7 +2813,7 @@ FILE* CDECL _wfreopen(const wchar_t *path, const wchar_t *mode, FILE* file) { 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) -- 2.17.1