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
d9910197
Commit
d9910197
authored
Mar 18, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Fix vector InsertAt / RemoveAt copy sizes.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6b0f741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vector.c
dlls/windows.gaming.input/vector.c
+2
-2
No files found.
dlls/windows.gaming.input/vector.c
View file @
d9910197
...
...
@@ -515,7 +515,7 @@ static HRESULT WINAPI vector_InsertAt( IVector_IInspectable *iface, UINT32 index
}
}
memmove
(
impl
->
elements
+
index
+
1
,
impl
->
elements
+
index
,
impl
->
size
++
*
sizeof
(
*
impl
->
elements
)
);
memmove
(
impl
->
elements
+
index
+
1
,
impl
->
elements
+
index
,
(
impl
->
size
++
-
index
)
*
sizeof
(
*
impl
->
elements
)
);
IInspectable_AddRef
(
(
impl
->
elements
[
index
]
=
value
)
);
return
S_OK
;
}
...
...
@@ -528,7 +528,7 @@ static HRESULT WINAPI vector_RemoveAt( IVector_IInspectable *iface, UINT32 index
if
(
index
>=
impl
->
size
)
return
E_BOUNDS
;
IInspectable_Release
(
impl
->
elements
[
index
]
);
memmove
(
impl
->
elements
+
index
,
impl
->
elements
+
index
+
1
,
--
impl
->
size
*
sizeof
(
*
impl
->
elements
)
);
memmove
(
impl
->
elements
+
index
,
impl
->
elements
+
index
+
1
,
(
--
impl
->
size
-
index
)
*
sizeof
(
*
impl
->
elements
)
);
return
S_OK
;
}
...
...
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