Report an error if trying to get data from an unacquired mouse.
This commit is contained in:
parent
bf8f93d915
commit
da87fa817d
|
@ -685,7 +685,9 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
LPDIRECTINPUTDEVICE8A iface,DWORD len,LPVOID ptr
|
||||
) {
|
||||
SysMouseImpl *This = (SysMouseImpl *)iface;
|
||||
|
||||
|
||||
if(This->acquired == 0) return DIERR_NOTACQUIRED;
|
||||
|
||||
EnterCriticalSection(&(This->crit));
|
||||
TRACE("(this=%p,0x%08lx,%p): \n",This,len,ptr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue