Report an error if trying to get data from an unacquired mouse.
This commit is contained in:
parent
bf8f93d915
commit
da87fa817d
|
@ -686,6 +686,8 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
) {
|
||||
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