msvcrt: Avoid null dereference in TRACE in MSVCRT__wfreopen.
This commit is contained in:
parent
9eca0aa8a7
commit
f6bb1a51a9
|
@ -4040,7 +4040,7 @@ MSVCRT_FILE* CDECL MSVCRT__wfreopen(const MSVCRT_wchar_t *path, const MSVCRT_wch
|
||||||
{
|
{
|
||||||
int open_flags, stream_flags, fd;
|
int open_flags, stream_flags, fd;
|
||||||
|
|
||||||
TRACE(":path (%s) mode (%s) file (%p) fd (%d)\n", debugstr_w(path), debugstr_w(mode), file, file->_file);
|
TRACE(":path (%s) mode (%s) file (%p) fd (%d)\n", debugstr_w(path), debugstr_w(mode), file, file ? file->_file : -1);
|
||||||
|
|
||||||
LOCK_FILES();
|
LOCK_FILES();
|
||||||
if (!file || ((fd = file->_file) < 0) || fd > MSVCRT_fdend)
|
if (!file || ((fd = file->_file) < 0) || fd > MSVCRT_fdend)
|
||||||
|
|
Loading…
Reference in New Issue