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

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