Andrew Talbot : winmm: Assign to struct instead of using memcpy.
Module: wine Branch: master Commit: d3e904202a8d9a0135482551e194ccf0d75ce98f URL: http://source.winehq.org/git/wine.git/?a=commit;h=d3e904202a8d9a0135482551e1... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Sat Mar 22 17:10:08 2008 +0000 winmm: Assign to struct instead of using memcpy. --- dlls/winmm/mmio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index 7b8ea15..fb19bd4 100644 --- a/dlls/winmm/mmio.c +++ b/dlls/winmm/mmio.c @@ -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;
participants (1)
-
Alexandre Julliard