winenas.drv: Assign to struct instead of using memcpy.
This commit is contained in:
parent
52f6018c73
commit
ddf9697433
|
@ -941,7 +941,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
|||
|
||||
wwo->wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
|
||||
|
||||
memcpy(&wwo->waveDesc, lpDesc, sizeof(WAVEOPENDESC));
|
||||
wwo->waveDesc = *lpDesc;
|
||||
memcpy(&wwo->format, lpDesc->lpFormat, sizeof(PCMWAVEFORMAT));
|
||||
|
||||
if (wwo->format.wBitsPerSample == 0) {
|
||||
|
|
Loading…
Reference in New Issue