msacm32.drv: Assign to structs instead of using memcpy.
This commit is contained in:
parent
3e3ce1fa5e
commit
5f160e561e
|
@ -434,7 +434,7 @@ static DWORD wodGetPosition(WAVEMAPDATA* wom, LPMMTIME lpTime, DWORD dwParam2)
|
||||||
MMTIME timepos;
|
MMTIME timepos;
|
||||||
TRACE("(%p %p %08x)\n", wom, lpTime, dwParam2);
|
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 */
|
/* For TIME_MS, we're going to recalculate using TIME_BYTES */
|
||||||
if (lpTime->wType == TIME_MS)
|
if (lpTime->wType == TIME_MS)
|
||||||
|
@ -988,7 +988,7 @@ static DWORD widGetPosition(WAVEMAPDATA* wim, LPMMTIME lpTime, DWORD dwParam2)
|
||||||
MMTIME timepos;
|
MMTIME timepos;
|
||||||
TRACE("(%p %p %08x)\n", wim, lpTime, dwParam2);
|
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 */
|
/* For TIME_MS, we're going to recalculate using TIME_BYTES */
|
||||||
if (lpTime->wType == TIME_MS)
|
if (lpTime->wType == TIME_MS)
|
||||||
|
|
Loading…
Reference in New Issue