https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3766d836c701d59cedb2d…
commit 3766d836c701d59cedb2d014bde572a7e8b40e59
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Thu Jun 28 17:44:49 2018 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 28 17:44:49 2018 +0200
[DBGHELP] Fix 3 MSVC warnings about MiniDumpWriteDump() (#643)
- Fixes MSVC errors: "...\dll\win32\dbghelp\minidump.c(857) : error C4028: formal
parameter 5 different from declaration", for parameters 5, 6 and 7.
- Fix spec file too.
CORE-7538
---
dll/win32/dbghelp/dbghelp.spec | 2 +-
sdk/include/psdk/dbghelp.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dll/win32/dbghelp/dbghelp.spec b/dll/win32/dbghelp/dbghelp.spec
index 2a572512e4..95cebca63d 100644
--- a/dll/win32/dbghelp/dbghelp.spec
+++ b/dll/win32/dbghelp/dbghelp.spec
@@ -30,7 +30,7 @@
@ stdcall MakeSureDirectoryPathExists(str)
@ stdcall MapDebugInformation(long str str long)
@ stdcall MiniDumpReadDumpStream(ptr long ptr ptr ptr)
-@ stdcall MiniDumpWriteDump(ptr long ptr long long long long)
+@ stdcall MiniDumpWriteDump(ptr long ptr long ptr ptr ptr)
@ stdcall SearchTreeForFile(str str ptr)
@ stdcall SearchTreeForFileW(wstr wstr ptr)
@ stdcall StackWalk(long long long ptr ptr ptr ptr ptr ptr)
diff --git a/sdk/include/psdk/dbghelp.h b/sdk/include/psdk/dbghelp.h
index 28eec9a10a..a8fdf38e0a 100644
--- a/sdk/include/psdk/dbghelp.h
+++ b/sdk/include/psdk/dbghelp.h
@@ -901,9 +901,9 @@ MiniDumpWriteDump(
_In_ DWORD,
_In_ HANDLE,
_In_ MINIDUMP_TYPE,
- _In_opt_ const PMINIDUMP_EXCEPTION_INFORMATION,
- _In_opt_ const PMINIDUMP_USER_STREAM_INFORMATION,
- _In_opt_ const PMINIDUMP_CALLBACK_INFORMATION);
+ _In_opt_ PMINIDUMP_EXCEPTION_INFORMATION,
+ _In_opt_ PMINIDUMP_USER_STREAM_INFORMATION,
+ _In_opt_ PMINIDUMP_CALLBACK_INFORMATION);
BOOL
WINAPI