msacm32.drv: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-05 21:34:59 +00:00 committed by Alexandre Julliard
parent 3e3ce1fa5e
commit 5f160e561e
1 changed files with 2 additions and 2 deletions

View File

@ -434,7 +434,7 @@ static DWORD wodGetPosition(WAVEMAPDATA* wom, LPMMTIME lpTime, DWORD dwParam2)
MMTIME timepos;
TRACE("(%p %p %08x)\n", wom, lpTime, dwParam2);
memcpy(&timepos, lpTime, sizeof(timepos));
timepos = *lpTime;
/* For TIME_MS, we're going to recalculate using TIME_BYTES */
if (lpTime->wType == TIME_MS)
@ -988,7 +988,7 @@ static DWORD widGetPosition(WAVEMAPDATA* wim, LPMMTIME lpTime, DWORD dwParam2)
MMTIME timepos;
TRACE("(%p %p %08x)\n", wim, lpTime, dwParam2);
memcpy(&timepos, lpTime, sizeof(timepos));
timepos = *lpTime;
/* For TIME_MS, we're going to recalculate using TIME_BYTES */
if (lpTime->wType == TIME_MS)