From d82df8f9b00f5e50dd81732a3760d6b8478779c9 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 21 May 2009 13:31:04 +0900 Subject: [PATCH] dbghelp: All parameters of MiniDumpReadDumpStream() except base are optional. --- dlls/dbghelp/minidump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c index 78e754f5063..6bc8070c67b 100644 --- a/dlls/dbghelp/minidump.c +++ b/dlls/dbghelp/minidump.c @@ -1005,9 +1005,9 @@ BOOL WINAPI MiniDumpReadDumpStream(PVOID base, ULONG str_idx, { if (dir->StreamType == str_idx) { - *pdir = dir; - *stream = (char*)base + dir->Location.Rva; - *size = dir->Location.DataSize; + if (pdir) *pdir = dir; + if (stream) *stream = (char*)base + dir->Location.Rva; + if (size) *size = dir->Location.DataSize; return TRUE; } } -- 2.11.4.GIT