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

This commit is contained in:
Eric Pouech 2009-10-04 14:31:04 +02:00 committed by Alexandre Julliard
parent 5cdd8a2a48
commit dd6b7b7f36
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}