[MIDIMAP] MIDIMAP_modMessage(): Fix a MSVC amd64 C4133 warning

MSVC amd64
'...\dll\win32\winmm\midimap\midimap.c(474): warning C4133: 'function': incompatible types - from 'LPDWORD' to 'DWORD_PTR *''

Import missed parts of
29b00e1a8c

Addendum to b40e7f0 (r47900).
CORE-7538
This commit is contained in:
Serge Gautherie 2020-11-12 01:22:46 +01:00 committed by Stanislav Motylkov
parent 05bbbd7d8b
commit 4121b0e805
2 changed files with 2 additions and 7 deletions

View file

@ -8,11 +8,6 @@ add_library(midimap MODULE
set_module_type(midimap win32dll UNICODE)
if(MSVC)
# error C4133: 'function': incompatible types - from 'LPDWORD' to 'DWORD_PTR *'
remove_target_compile_option(midimap "/we4133")
endif()
target_link_libraries(midimap uuid wine)
add_importlibs(midimap advapi32 user32 winmm msvcrt kernel32 ntdll)
add_cd_file(TARGET midimap DESTINATION reactos/system32 FOR all)

View file

@ -392,7 +392,7 @@ static DWORD modData(MIDIMAPDATA* mom, DWORD_PTR dwParam)
}
break;
default:
FIXME("ooch %lu\n", dwParam);
FIXME("ooch %lx\n", dwParam);
}
return ret;
@ -471,7 +471,7 @@ DWORD WINAPI MIDIMAP_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
/* FIXME: Pretend this is supported */
return 0;
case MODM_OPEN: return modOpen ((LPDWORD)dwUser, (LPMIDIOPENDESC)dwParam1,dwParam2);
case MODM_OPEN: return modOpen((DWORD_PTR *)dwUser, (LPMIDIOPENDESC)dwParam1, dwParam2);
case MODM_CLOSE: return modClose ((MIDIMAPDATA*)dwUser);
case MODM_DATA: return modData ((MIDIMAPDATA*)dwUser, dwParam1);