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

This commit is contained in:
James Dean Anderson 2005-05-04 09:46:07 +00:00 committed by Alexandre Julliard
parent bf8f93d915
commit da87fa817d
1 changed files with 3 additions and 1 deletions

View File

@ -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);