From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
MCI_UnmapMsgAtoW handles all cases where MCI_MapMsgAtoW allocates memory. --- dlls/winmm/mci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c index 959801aa835..ee3b833a381 100644 --- a/dlls/winmm/mci.c +++ b/dlls/winmm/mci.c @@ -2294,8 +2294,8 @@ DWORD WINAPI mciSendCommandA(MCIDEVICEID wDevID, UINT wMsg, DWORD_PTR dwParam1, return MCIERR_OUT_OF_MEMORY; } ret = mciSendCommandW(wDevID, wMsg, dwParam1, dwParam2); - if (mapped) - MCI_UnmapMsgAtoW(wMsg, dwParam1, dwParam2, ret); + + MCI_UnmapMsgAtoW(wMsg, dwParam1, dwParam2, ret); return ret; }