Fixed a heap bug.

oldstable
Andreas Mohr 1998-12-07 10:56:40 +00:00 committed by Alexandre Julliard
parent a00b49f068
commit 59ae7d94ea
1 changed files with 1 additions and 1 deletions

View File

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