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) {
|
||||
|
@ -1882,7 +1882,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
|||
|
||||
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