diff --git a/reactos/lib/winmm/mci.c b/reactos/lib/winmm/mci.c index 728d38d8081..5faa40da09d 100644 --- a/reactos/lib/winmm/mci.c +++ b/reactos/lib/winmm/mci.c @@ -456,15 +456,15 @@ static DWORD MCI_UnmapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR dwParam2, if (dwParam1 & MCI_OPEN_TYPE) { if (!(dwParam1 & MCI_OPEN_TYPE_ID)) - HeapFree(GetProcessHeap(), 0, mci_openW->lpstrDeviceType); + HeapFree(GetProcessHeap(), 0, (PVOID)mci_openW->lpstrDeviceType); } if (dwParam1 & MCI_OPEN_ELEMENT) { if (!(dwParam1 & MCI_OPEN_ELEMENT_ID)) - HeapFree(GetProcessHeap(), 0, mci_openW->lpstrElementName); + HeapFree(GetProcessHeap(), 0, (PVOID)mci_openW->lpstrElementName); } if (dwParam1 & MCI_OPEN_ALIAS) - HeapFree(GetProcessHeap(), 0, mci_openW->lpstrAlias); + HeapFree(GetProcessHeap(), 0, (PVOID)mci_openW->lpstrAlias); HeapFree(GetProcessHeap(), 0, ptr); } break; diff --git a/reactos/lib/winmm/winmm.c b/reactos/lib/winmm/winmm.c index 45f5307aeed..ed5614e6ba1 100644 --- a/reactos/lib/winmm/winmm.c +++ b/reactos/lib/winmm/winmm.c @@ -103,8 +103,10 @@ static void WINMM_DeleteIData(void) * WINMM_LoadMMSystem * */ +#ifndef __REACTOS__ static HANDLE (WINAPI *pGetModuleHandle16)(LPCSTR); static DWORD (WINAPI *pLoadLibrary16)(LPCSTR); +#endif BOOL WINMM_CheckForMMSystem(void) {