diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c index 6fca0138128..216fb2a0fed 100644 --- a/dlls/winmm/mci.c +++ b/dlls/winmm/mci.c @@ -2393,6 +2393,7 @@ YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID uDeviceID, DWORD* lpdwYieldData) WARN("Proc is 32 bit\n"); return NULL; } + if (lpdwYieldData) *lpdwYieldData = wmd->dwYieldData; return wmd->lpfnYieldProc; } diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index 4f320f7b136..fd065d070cb 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -647,6 +647,7 @@ YIELDPROC16 WINAPI mciGetYieldProc16(UINT16 uDeviceID, DWORD* lpdwYieldData) WARN("Proc is 32 bit\n"); return NULL; } + if (lpdwYieldData) *lpdwYieldData = wmd->dwYieldData; return (YIELDPROC16)wmd->lpfnYieldProc; }