wineesd.drv: Assign to structs instead of using memcpy.
This commit is contained in:
parent
058761fa34
commit
52f6018c73
|
@ -1227,7 +1227,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;
|
||||
copy_format(lpDesc->lpFormat, &wwo->waveFormat);
|
||||
|
||||
if (wwo->waveFormat.Format.wBitsPerSample == 0) {
|
||||
|
@ -1881,8 +1881,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
|||
dwFlags &= ~WAVE_DIRECTSOUND;
|
||||
|
||||
wwi->wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
|
||||
|
||||
memcpy(&wwi->waveDesc, lpDesc, sizeof(WAVEOPENDESC));
|
||||
|
||||
wwi->waveDesc = *lpDesc;
|
||||
copy_format(lpDesc->lpFormat, &wwi->waveFormat);
|
||||
|
||||
if (wwi->waveFormat.Format.wBitsPerSample == 0) {
|
||||
|
|
Loading…
Reference in New Issue