From d3e904202a8d9a0135482551e194ccf0d75ce98f Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 22 Mar 2008 17:10:08 +0000 Subject: [PATCH] winmm: Assign to struct instead of using memcpy. --- dlls/winmm/mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index 7b8ea15e1f2..fb19bd46b39 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;