Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
53baea13
Commit
53baea13
authored
Nov 10, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Use HeapAlloc/Free instead of alloc/free.
parent
d9ea955d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+6
-6
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
53baea13
...
...
@@ -1469,17 +1469,17 @@ static HRESULT WINAPI JoystickAImpl_CreateEffect(LPDIRECTINPUTDEVICE8A iface,
#ifndef HAVE_STRUCT_FF_EFFECT_DIRECTION
TRACE
(
"not available (compiled w/o ff support)
\n
"
);
*
ppdef
=
NULL
;
return
DI_OK
;
return
DI_OK
;
#else
new
=
malloc
(
sizeof
(
EffectListItem
));
new
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
EffectListItem
));
new
->
next
=
This
->
top_effect
;
This
->
top_effect
=
new
;
retval
=
linuxinput_create_effect
(
&
(
This
->
joyfd
),
rguid
,
&
(
new
->
ref
));
if
(
retval
!=
DI_OK
)
return
retval
;
if
(
lpeff
!=
NULL
)
retval
=
IDirectInputEffect_SetParameters
(
new
->
ref
,
lpeff
,
0
);
if
(
retval
!=
DI_OK
&&
retval
!=
DI_DOWNLOADSKIPPED
)
...
...
@@ -1729,12 +1729,12 @@ static HRESULT WINAPI JoystickAImpl_SendForceFeedbackCommand(
/* Stop, unload, release and free all effects */
/* This returns the device to its "bare" state */
while
(
This
->
top_effect
)
{
EffectListItem
*
temp
=
This
->
top_effect
;
EffectListItem
*
temp
=
This
->
top_effect
;
IDirectInputEffect_Stop
(
temp
->
ref
);
IDirectInputEffect_Unload
(
temp
->
ref
);
IDirectInputEffect_Release
(
temp
->
ref
);
This
->
top_effect
=
temp
->
next
;
free
(
temp
);
This
->
top_effect
=
temp
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
temp
);
}
}
else
if
(
dwFlags
==
DISFFC_PAUSE
||
dwFlags
==
DISFFC_CONTINUE
)
{
FIXME
(
"No support for Pause or Continue in linux
\n
"
);
...
...
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