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
15216098
Commit
15216098
authored
Jan 09, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: COM cleanup - use proper DirectInput interface with IUknown calls.
parent
7b472826
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
device.c
dlls/dinput/device.c
+1
-1
dinput_main.c
dlls/dinput/dinput_main.c
+1
-1
joystick_linux.c
dlls/dinput/joystick_linux.c
+1
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+1
-1
joystick_osx.c
dlls/dinput/joystick_osx.c
+1
-1
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 @
15216098
...
...
@@ -712,7 +712,7 @@ ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface)
list_remove
(
&
This
->
entry
);
LeaveCriticalSection
(
&
This
->
dinput
->
crit
);
IDirectInput_Release
(
(
LPDIRECTINPUTDEVICE8A
)
This
->
dinput
);
IDirectInput_Release
(
&
This
->
dinput
->
IDirectInput7A_iface
);
This
->
crit
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
crit
);
...
...
dlls/dinput/dinput_main.c
View file @
15216098
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI DirectInputCreateEx(
if
(
!
check_hook_thread
())
{
IUnknown_Release
(
(
LPDIRECTINPUT7A
)
This
);
IUnknown_Release
(
&
This
->
IDirectInput7A_iface
);
return
DIERR_GENERIC
;
}
...
...
dlls/dinput/joystick_linux.c
View file @
15216098
...
...
@@ -368,7 +368,7 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
newDevice
->
generic
.
props
[
i
].
lSaturation
=
0
;
}
IDirectInput_AddRef
(
(
LPDIRECTINPUTDEVICE8A
)
newDevice
->
generic
.
base
.
dinput
);
IDirectInput_AddRef
(
&
newDevice
->
generic
.
base
.
dinput
->
IDirectInput7A_iface
);
newDevice
->
generic
.
devcaps
.
dwSize
=
sizeof
(
newDevice
->
generic
.
devcaps
);
newDevice
->
generic
.
devcaps
.
dwFlags
=
DIDC_ATTACHED
;
...
...
dlls/dinput/joystick_linuxinput.c
View file @
15216098
...
...
@@ -504,7 +504,7 @@ static JoystickImpl *alloc_device(REFGUID rguid, const void *jvt, IDirectInputIm
if
(
newDevice
->
joydev
->
has_ff
)
newDevice
->
generic
.
devcaps
.
dwFlags
|=
DIDC_FORCEFEEDBACK
;
IDirectInput_AddRef
(
(
LPDIRECTINPUTDEVICE8A
)
newDevice
->
generic
.
base
.
dinput
);
IDirectInput_AddRef
(
&
newDevice
->
generic
.
base
.
dinput
->
IDirectInput7A_iface
);
return
newDevice
;
failed:
...
...
dlls/dinput/joystick_osx.c
View file @
15216098
...
...
@@ -807,7 +807,7 @@ static HRESULT alloc_device(REFGUID rguid, const void *jvt, IDirectInputImpl *di
/* initialize default properties */
get_osx_device_elements_props
(
newDevice
);
IDirectInput_AddRef
(
(
LPDIRECTINPUTDEVICE8A
)
newDevice
->
generic
.
base
.
dinput
);
IDirectInput_AddRef
(
&
newDevice
->
generic
.
base
.
dinput
->
IDirectInput7A_iface
);
newDevice
->
generic
.
devcaps
.
dwSize
=
sizeof
(
newDevice
->
generic
.
devcaps
);
newDevice
->
generic
.
devcaps
.
dwFlags
=
DIDC_ATTACHED
;
...
...
dlls/dinput/keyboard.c
View file @
15216098
...
...
@@ -236,7 +236,7 @@ static SysKeyboardImpl *alloc_device(REFGUID rguid, const void *kvt, IDirectInpu
df
->
dwNumObjs
=
idx
;
newDevice
->
base
.
data_format
.
wine_df
=
df
;
IDirectInput_AddRef
(
(
LPDIRECTINPUTDEVICE8A
)
newDevice
->
base
.
dinput
);
IDirectInput_AddRef
(
&
newDevice
->
base
.
dinput
->
IDirectInput7A_iface
);
return
newDevice
;
failed:
...
...
dlls/dinput/mouse.c
View file @
15216098
...
...
@@ -223,7 +223,7 @@ static SysMouseImpl *alloc_device(REFGUID rguid, const void *mvt, IDirectInputIm
df
->
rgodf
[
i
].
dwType
=
DIDFT_MAKEINSTANCE
(
i
)
|
DIDFT_PSHBUTTON
;
newDevice
->
base
.
data_format
.
wine_df
=
df
;
IDirectInput_AddRef
(
(
LPDIRECTINPUTDEVICE8A
)
newDevice
->
base
.
dinput
);
IDirectInput_AddRef
(
&
newDevice
->
base
.
dinput
->
IDirectInput7A_iface
);
return
newDevice
;
failed:
...
...
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