mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[CRT]
- Fix potential null dereference in TRACE in _wfreopen. Patch by Víctor Martínez CORE-8120 #resolve svn path=/trunk/; revision=63083
This commit is contained in:
parent
2f0e570ea6
commit
174da99a46
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue