https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b68749c72700fcdb1b403…
commit b68749c72700fcdb1b403b911c7c3167f4cb7137
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Mon Apr 13 01:41:02 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Mon Apr 13 01:41:02 2020 +0200
[WINMM] Fix crashing winetest
CORE-16795
CORE-16806
---
dll/win32/winmm/lolvldrv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/winmm/lolvldrv.c b/dll/win32/winmm/lolvldrv.c
index e500665b384..eda443f37ee 100644
--- a/dll/win32/winmm/lolvldrv.c
+++ b/dll/win32/winmm/lolvldrv.c
@@ -330,6 +330,10 @@ UINT MMDRV_PhysicalFeatures(LPWINE_MLD mld, UINT uMsg,
case DRVM_MAPPER_PREFERRED_GET:
/* FIXME: get from registry someday */
+#ifdef __REACTOS__
+ if (!dwParam1 || !dwParam2)
+ return MMSYSERR_INVALPARAM;
+#endif
*((LPDWORD)dwParam1) = -1; /* No preferred device */
*((LPDWORD)dwParam2) = 0;
break;