winmm: The dwSize paramater of JOYINFOEX must be set correctly.

This commit is contained in:
Bruno Jesus 2014-12-11 02:53:48 -02:00 committed by Alexandre Julliard
parent 3db2e9113e
commit 135f929a39
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetPosEx(UINT wID, LPJOYINFOEX lpInfo)
TRACE("(%d, %p);\n", wID, lpInfo);
if (!lpInfo) return MMSYSERR_INVALPARAM;
if (wID >= MAXJOYSTICK) return JOYERR_PARMS;
if (wID >= MAXJOYSTICK || lpInfo->dwSize < sizeof(JOYINFOEX)) return JOYERR_PARMS;
if (!JOY_LoadDriver(wID)) return MMSYSERR_NODRIVER;
lpInfo->dwXpos = 0;