Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
d61d7101
Commit
d61d7101
authored
Nov 10, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Mouse device doesn't support property DIPROP_VIDPID.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f10f98cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
mouse.c
dlls/dinput/mouse.c
+2
-1
mouse.c
dlls/dinput/tests/mouse.c
+8
-0
No files found.
dlls/dinput/mouse.c
View file @
d61d7101
...
...
@@ -652,7 +652,8 @@ static HRESULT WINAPI SysMouseWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, REF
break
;
}
case
(
DWORD_PTR
)
DIPROP_VIDPID
:
return
DIERR_UNSUPPORTED
;
default:
return
IDirectInputDevice2WImpl_GetProperty
(
iface
,
rguid
,
pdiph
);
}
...
...
dlls/dinput/tests/mouse.c
View file @
d61d7101
...
...
@@ -198,6 +198,14 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
/* Granularity of Y axis should be 1! */
ok
(
hr
==
S_OK
&&
di_op
.
dwData
==
1
,
"GetProperty(): %08x, dwData: %i but should be 1.
\n
"
,
hr
,
di_op
.
dwData
);
memset
(
&
di_op
,
0
,
sizeof
(
di_op
));
di_op
.
diph
.
dwSize
=
sizeof
(
DIPROPDWORD
);
di_op
.
diph
.
dwHeaderSize
=
sizeof
(
DIPROPHEADER
);
di_op
.
diph
.
dwHow
=
DIPH_DEVICE
;
di_op
.
diph
.
dwObj
=
0
;
hr
=
IDirectInputDevice_GetProperty
(
pMouse
,
DIPROP_VIDPID
,
&
di_op
.
diph
);
ok
(
hr
==
DIERR_UNSUPPORTED
,
"got %08x
\n
"
,
hr
);
IUnknown_Release
(
pMouse
);
DestroyWindow
(
hwnd2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment