Module: wine Branch: master Commit: 71eb8e10cd8edd8f17c5eece704c2e6d1756d8f7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=71eb8e10cd8edd8f17c5eece70...
Author: Andrew Nguyen arethusa26@gmail.com Date: Wed Oct 29 03:06:34 2008 -0500
winmm: Fix a potential infinite recursion bug.
---
dlls/winmm/mmsystem.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index a0e06fe..76e42f1 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -3195,7 +3195,7 @@ MMRESULT16 WINAPI joyReleaseCapture16(UINT16 wID) */ MMRESULT16 WINAPI joySetCapture16(HWND16 hWnd, UINT16 wID, UINT16 wPeriod, BOOL16 bChanged) { - return joySetCapture16(hWnd, wID, wPeriod, bChanged); + return joySetCapture(HWND_32(hWnd), wID, wPeriod, bChanged); }
/************************************************************************** @@ -3203,7 +3203,7 @@ MMRESULT16 WINAPI joySetCapture16(HWND16 hWnd, UINT16 wID, UINT16 wPeriod, BOOL1 */ MMRESULT16 WINAPI joySetThreshold16(UINT16 wID, UINT16 wThreshold) { - return joySetThreshold16(wID,wThreshold); + return joySetThreshold(wID,wThreshold); }
/**************************************************************************