Commit da87fa81 authored by James Dean Anderson's avatar James Dean Anderson Committed by Alexandre Julliard

Report an error if trying to get data from an unacquired mouse.

parent bf8f93d9
...@@ -686,6 +686,8 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState( ...@@ -686,6 +686,8 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
) { ) {
SysMouseImpl *This = (SysMouseImpl *)iface; SysMouseImpl *This = (SysMouseImpl *)iface;
if(This->acquired == 0) return DIERR_NOTACQUIRED;
EnterCriticalSection(&(This->crit)); EnterCriticalSection(&(This->crit));
TRACE("(this=%p,0x%08lx,%p): \n",This,len,ptr); TRACE("(this=%p,0x%08lx,%p): \n",This,len,ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment