[WINMM] Fix crashing winetest

CORE-16795
CORE-16806
This commit is contained in:
Mark Jansen 2020-04-13 01:41:02 +02:00
parent 58bc93f164
commit b68749c727
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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;