winmm: The dwSize paramater of JOYINFOEX must be set correctly.
This commit is contained in:
parent
3db2e9113e
commit
135f929a39
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue