winmm: Assign to structs instead of using memcpy.

This commit is contained in:
Jörg Höhle 2011-07-27 23:44:09 +02:00 committed by Alexandre Julliard
parent 710d200427
commit 7fed738353
1 changed files with 6 additions and 6 deletions

View File

@ -1445,7 +1445,7 @@ static void WOD_PushData(WINMM_Device *device)
device->played_frames += avail_frames;
exit:
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);
@ -1625,7 +1625,7 @@ static void WID_PullData(WINMM_Device *device)
}
exit:
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);
@ -1718,7 +1718,7 @@ static LRESULT WINMM_Reset(HWAVE hwave)
device->loop_counter = 0;
device->last_clock_pos = 0;
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);
@ -2367,7 +2367,7 @@ UINT WINAPI waveOutClose(HWAVEOUT hWaveOut)
if(!WINMM_ValidateAndLock(device))
return MMSYSERR_INVALHANDLE;
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);
@ -3015,7 +3015,7 @@ UINT WINAPI waveInClose(HWAVEIN hWaveIn)
if(!WINMM_ValidateAndLock(device))
return MMSYSERR_INVALHANDLE;
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);
@ -3169,7 +3169,7 @@ UINT WINAPI waveInStop(HWAVEIN hWaveIn)
}else
buf = NULL;
memcpy(&cb_info, &device->cb_info, sizeof(cb_info));
cb_info = device->cb_info;
LeaveCriticalSection(&device->lock);