winmm: Assign to struct instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-22 17:10:08 +00:00 committed by Alexandre Julliard
parent 480cd234a8
commit d3e904202a
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ MMRESULT WINAPI mmioGetInfo(HMMIO hmmio, MMIOINFO* lpmmioinfo, UINT uFlags)
if ((wm = MMIO_Get(hmmio)) == NULL)
return MMSYSERR_INVALHANDLE;
memcpy(lpmmioinfo, &wm->info, sizeof(MMIOINFO));
*lpmmioinfo = wm->info;
/* don't expose 16 bit ioproc:s */
if (wm->ioProc->type != MMIO_PROC_16)
lpmmioinfo->pIOProc = wm->ioProc->pIOProc;