Skip to content
Snippets Groups Projects
Commit 125b0f74 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard
Browse files

winmm: Handle invalid threshold values in joySetThreshold.

parent 9c8978cf
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,7 @@ MMRESULT WINAPI joySetThreshold(UINT wID, UINT wThreshold)
{
TRACE("(%04X, %d);\n", wID, wThreshold);
if (wID >= MAXJOYSTICK) return MMSYSERR_INVALPARAM;
if (wID >= MAXJOYSTICK || wThreshold > 65535) return MMSYSERR_INVALPARAM;
JOY_Sticks[wID].threshold = wThreshold;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment