Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
2004db1b
Commit
2004db1b
authored
Feb 02, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Don't use HIWORD to check if a REFGUID is a DIPROP.
parent
e9776726
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
8 deletions
+10
-8
device.c
dlls/dinput/device.c
+2
-2
dinput_private.h
dlls/dinput/dinput_private.h
+2
-0
joystick.c
dlls/dinput/joystick.c
+2
-2
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-2
keyboard.c
dlls/dinput/keyboard.c
+1
-1
mouse.c
dlls/dinput/mouse.c
+1
-1
No files found.
dlls/dinput/device.c
View file @
2004db1b
...
...
@@ -872,7 +872,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
TRACE
(
"(%p) %s,%p
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
if
(
HIWORD
(
rguid
))
return
DI_OK
;
if
(
!
IS_DIPROP
(
rguid
))
return
DI_OK
;
switch
(
LOWORD
(
rguid
))
{
...
...
@@ -906,7 +906,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetProperty(
TRACE
(
"(%p) %s,%p
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
if
(
HIWORD
(
rguid
))
return
DI_OK
;
if
(
!
IS_DIPROP
(
rguid
))
return
DI_OK
;
switch
(
LOWORD
(
rguid
))
{
...
...
dlls/dinput/dinput_private.h
View file @
2004db1b
...
...
@@ -65,4 +65,6 @@ typedef int (*DI_EVENT_PROC)(LPDIRECTINPUTDEVICE8A, WPARAM, LPARAM);
extern
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
);
#define IS_DIPROP(x) (((ULONG_PTR)(x) >> 16) == 0)
#endif
/* __WINE_DLLS_DINPUT_DINPUT_PRIVATE_H */
dlls/dinput/joystick.c
View file @
2004db1b
...
...
@@ -53,7 +53,7 @@ HRESULT WINAPI JoystickAGenericImpl_SetProperty(
if
(
TRACE_ON
(
dinput
))
_dump_DIPROPHEADER
(
ph
);
if
(
!
HIWORD
(
rguid
))
{
if
(
IS_DIPROP
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD_PTR
)
DIPROP_RANGE
:
{
LPCDIPROPRANGE
pr
=
(
LPCDIPROPRANGE
)
ph
;
...
...
@@ -230,7 +230,7 @@ HRESULT WINAPI JoystickAGenericImpl_GetProperty(
if
(
TRACE_ON
(
dinput
))
_dump_DIPROPHEADER
(
pdiph
);
if
(
!
HIWORD
(
rguid
))
{
if
(
IS_DIPROP
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD_PTR
)
DIPROP_RANGE
:
{
LPDIPROPRANGE
pr
=
(
LPDIPROPRANGE
)
pdiph
;
...
...
dlls/dinput/joystick_linuxinput.c
View file @
2004db1b
...
...
@@ -847,7 +847,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
TRACE
(
"ph.dwSize = %d, ph.dwHeaderSize =%d, ph.dwObj = %d, ph.dwHow= %d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
if
(
!
HIWORD
(
rguid
))
{
if
(
IS_DIPROP
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD_PTR
)
DIPROP_CALIBRATIONMODE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
...
...
@@ -898,7 +898,7 @@ static HRESULT WINAPI JoystickAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
TRACE
(
"(this=%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
if
(
HIWORD
(
rguid
))
return
DI_OK
;
if
(
!
IS_DIPROP
(
rguid
))
return
DI_OK
;
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD_PTR
)
DIPROP_AUTOCENTER
:
...
...
dlls/dinput/keyboard.c
View file @
2004db1b
...
...
@@ -447,7 +447,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
TRACE
(
"(%p) %s,%p
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
if
(
HIWORD
(
rguid
))
return
DI_OK
;
if
(
!
IS_DIPROP
(
rguid
))
return
DI_OK
;
switch
(
LOWORD
(
rguid
))
{
...
...
dlls/dinput/mouse.c
View file @
2004db1b
...
...
@@ -587,7 +587,7 @@ static HRESULT WINAPI SysMouseAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
TRACE
(
"(%p) %s,%p
\n
"
,
This
,
debugstr_guid
(
rguid
),
pdiph
);
_dump_DIPROPHEADER
(
pdiph
);
if
(
!
HIWORD
(
rguid
))
{
if
(
IS_DIPROP
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD_PTR
)
DIPROP_GRANULARITY
:
{
LPDIPROPDWORD
pr
=
(
LPDIPROPDWORD
)
pdiph
;
...
...
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