Author: akhaldi
Date: Sun Mar 22 18:07:59 2015
New Revision: 66856
URL:
http://svn.reactos.org/svn/reactos?rev=66856&view=rev
Log:
[MPLAY32] Give a valid pointer to a MCI_SEEK_PARMS structure when using MCI_SEEK_TO_START
flag. By Ricardo Hanke. CORE-9408
Modified:
trunk/reactos/base/applications/mplay32/mplay32.c
Modified: trunk/reactos/base/applications/mplay32/mplay32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] Sun Mar 22 18:07:59
2015
@@ -640,6 +640,7 @@
{
MCIERROR mciError;
MCI_GENERIC_PARMS mciGeneric;
+ MCI_SEEK_PARMS mciSeek;
if (wDeviceId == 0) return;
@@ -654,7 +655,7 @@
return;
}
- mciSendCommand(wDeviceId, MCI_SEEK, MCI_WAIT | MCI_SEEK_TO_START, 0);
+ mciSendCommand(wDeviceId, MCI_SEEK, MCI_WAIT | MCI_SEEK_TO_START,
(DWORD_PTR)&mciSeek);
UpdateTimeDisplay(hTimeDisplay);
UpdateWindowCaption(hwnd);
@@ -777,10 +778,11 @@
{
MCIERROR mciError;
MCI_PLAY_PARMS mciPlay;
+ MCI_SEEK_PARMS mciSeek;
SetTimer(hwnd, IDT_PLAYTIMER, 100, (TIMERPROC)PlayTimerProc);
- mciSendCommand(wDeviceId, MCI_SEEK, MCI_WAIT | MCI_SEEK_TO_START, 0);
+ mciSendCommand(wDeviceId, MCI_SEEK, MCI_WAIT | MCI_SEEK_TO_START,
(DWORD_PTR)&mciSeek);
mciPlay.dwCallback = (DWORD_PTR)hwnd;
mciPlay.dwFrom = 0;