Commit 59ae7d94 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Fixed a heap bug.

parent a00b49f0
...@@ -2062,7 +2062,7 @@ int MCI_UnMapMsg16To32A(WORD uDevTyp, WORD wMsg, DWORD lParam) ...@@ -2062,7 +2062,7 @@ int MCI_UnMapMsg16To32A(WORD uDevTyp, WORD wMsg, DWORD lParam)
mop16->wDeviceID = mop32a->wDeviceID; mop16->wDeviceID = mop32a->wDeviceID;
} }
HeapFree(SystemHeap, 0, (LPVOID)lParam); HeapFree(SystemHeap, 0, (LPVOID)(lParam - sizeof(LPMCI_OPEN_PARMS16)));
return 0; return 0;
default: default:
FIXME(mci, "Map/Unmap internal error on msg=%s\n", MCI_CommandToString(wMsg)); FIXME(mci, "Map/Unmap internal error on msg=%s\n", MCI_CommandToString(wMsg));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment