Commit dd6b7b7f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winmm: Correctly fill the yield-data parameter in mciGetYieldProc.

parent 5cdd8a2a
...@@ -2393,6 +2393,7 @@ YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID uDeviceID, DWORD* lpdwYieldData) ...@@ -2393,6 +2393,7 @@ YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID uDeviceID, DWORD* lpdwYieldData)
WARN("Proc is 32 bit\n"); WARN("Proc is 32 bit\n");
return NULL; return NULL;
} }
if (lpdwYieldData) *lpdwYieldData = wmd->dwYieldData;
return wmd->lpfnYieldProc; return wmd->lpfnYieldProc;
} }
......
...@@ -647,6 +647,7 @@ YIELDPROC16 WINAPI mciGetYieldProc16(UINT16 uDeviceID, DWORD* lpdwYieldData) ...@@ -647,6 +647,7 @@ YIELDPROC16 WINAPI mciGetYieldProc16(UINT16 uDeviceID, DWORD* lpdwYieldData)
WARN("Proc is 32 bit\n"); WARN("Proc is 32 bit\n");
return NULL; return NULL;
} }
if (lpdwYieldData) *lpdwYieldData = wmd->dwYieldData;
return (YIELDPROC16)wmd->lpfnYieldProc; return (YIELDPROC16)wmd->lpfnYieldProc;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment