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
db8e2388
Commit
db8e2388
authored
May 01, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Properly null-terminate the path in concat_W().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e8c4dbce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
queue.c
dlls/setupapi/queue.c
+2
-0
No files found.
dlls/setupapi/queue.c
View file @
db8e2388
...
...
@@ -122,6 +122,7 @@ static void concat_W( WCHAR *buffer, const WCHAR *src1, const WCHAR *src2, const
strcpyW
(
buffer
,
src1
);
buffer
+=
strlenW
(
buffer
);
if
(
buffer
[
-
1
]
!=
'\\'
)
*
buffer
++
=
'\\'
;
*
buffer
=
0
;
if
(
src2
)
while
(
*
src2
==
'\\'
)
src2
++
;
}
...
...
@@ -130,6 +131,7 @@ static void concat_W( WCHAR *buffer, const WCHAR *src1, const WCHAR *src2, const
strcpyW
(
buffer
,
src2
);
buffer
+=
strlenW
(
buffer
);
if
(
buffer
[
-
1
]
!=
'\\'
)
*
buffer
++
=
'\\'
;
*
buffer
=
0
;
if
(
src3
)
while
(
*
src3
==
'\\'
)
src3
++
;
}
...
...
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