shell32: Prevent a possible null pointer dereference in SHGetFileInfoW.
Sebastian Lackner
sebastian at fds-team.de
Wed Jul 19 10:23:07 CDT 2017
From: Mark Jansen <mark.jansen at reactos.org>
Signed-off-by: Mark Jansen <mark.jansen at reactos.org>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
dlls/shell32/shell32_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 34b906c2fd5..0ed67907ca1 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -431,7 +431,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.13.1
More information about the wine-patches
mailing list