mciwave: Fixed a bogus free.

This commit is contained in:
Eric Pouech 2006-06-14 21:35:18 +02:00 committed by Alexandre Julliard
parent 88694be2ad
commit 50c9681a24
1 changed files with 2 additions and 0 deletions

View File

@ -480,6 +480,8 @@ static LRESULT WAVE_mciOpen(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_P
wmw->dwStatus = MCI_MODE_NOT_READY;
wmw->hFile = 0;
memcpy(&wmw->openParms, lpOpenParms, sizeof(MCI_WAVE_OPEN_PARMSA));
/* will be set by WAVE_mciOpenFile */
wmw->openParms.lpstrElementName = NULL;
TRACE("wDevID=%04X (lpParams->wDeviceID=%08X)\n", wDevID, lpOpenParms->wDeviceID);