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
3872fc39
Commit
3872fc39
authored
Sep 09, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Sep 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
offsets array is the size of the wine data format so there is no need
to reallocate it when the format changes.
parent
92acc58a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
joystick_linux.c
dlls/dinput/joystick_linux.c
+0
-9
No files found.
dlls/dinput/joystick_linux.c
View file @
3872fc39
...
...
@@ -685,7 +685,6 @@ static HRESULT WINAPI JoystickAImpl_SetDataFormat(
LPDIDATAFORMAT
new_df
=
0
;
LPDIOBJECTDATAFORMAT
new_rgodf
=
0
;
ObjProps
*
new_props
=
0
;
int
*
new_offsets
=
0
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
df
);
...
...
@@ -710,14 +709,9 @@ static HRESULT WINAPI JoystickAImpl_SetDataFormat(
if
(
new_props
==
0
)
goto
FAILED
;
new_offsets
=
HeapAlloc
(
GetProcessHeap
(),
0
,
df
->
dwNumObjs
*
sizeof
(
int
));
if
(
new_offsets
==
0
)
goto
FAILED
;
HeapFree
(
GetProcessHeap
(),
0
,
This
->
user_df
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
user_df
->
rgodf
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
props
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
offsets
);
release_DataFormat
(
This
->
transform
);
This
->
user_df
=
new_df
;
...
...
@@ -731,7 +725,6 @@ static HRESULT WINAPI JoystickAImpl_SetDataFormat(
This
->
props
[
i
].
lDeadZone
=
1000
;
This
->
props
[
i
].
lSaturation
=
0
;
}
This
->
offsets
=
new_offsets
;
This
->
transform
=
create_DataFormat
(
&
c_dfDIJoystick2
,
This
->
user_df
,
This
->
offsets
);
calculate_ids
(
This
);
...
...
@@ -740,8 +733,6 @@ static HRESULT WINAPI JoystickAImpl_SetDataFormat(
FAILED
:
WARN
(
"out of memory
\n
"
);
if
(
new_offsets
)
HeapFree
(
GetProcessHeap
(),
0
,
new_offsets
);
if
(
new_props
)
HeapFree
(
GetProcessHeap
(),
0
,
new_props
);
if
(
new_rgodf
)
...
...
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