Commit 5f160e56 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

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

parent 3e3ce1fa
......@@ -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)
......
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