From e41b7d92706eaa3b9de19859b669c87125f88187 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 16 Jul 2017 13:44:18 +0000 Subject: [PATCH] [SHELL32] Do not dereference a nullpointer for logging. CORE-13552 svn path=/trunk/; revision=75356 --- reactos/dll/win32/shell32/wine/shell32_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/wine/shell32_main.c b/reactos/dll/win32/shell32/wine/shell32_main.c index 597954eb99d..b5638f05820 100644 --- a/reactos/dll/win32/shell32/wine/shell32_main.c +++ b/reactos/dll/win32/shell32/wine/shell32_main.c @@ -423,7 +423,7 @@ DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes, TRACE("%s fattr=0x%x sfi=%p(attr=0x%08x) size=0x%x flags=0x%x\n", (flags & SHGFI_PIDL)? "pidl" : debugstr_w(path), dwFileAttributes, - psfi, psfi->dwAttributes, sizeofpsfi, flags); + psfi, psfi ? psfi->dwAttributes : 0, sizeofpsfi, flags); if (!path) return FALSE; -- 2.17.1