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
b622101e
Commit
b622101e
authored
Apr 01, 2008
by
Alexander Morozov
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Creating SymbolicLink value in registry as in Windows XP.
parent
c4fb0f23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
devinst.c
dlls/setupapi/devinst.c
+4
-4
No files found.
dlls/setupapi/devinst.c
View file @
b622101e
...
...
@@ -244,7 +244,7 @@ static LPWSTR SETUPDI_CreateSymbolicLinkPath(LPCWSTR instanceId,
/* omit length of format specifiers, but include NULL terminator: */
len
=
lstrlenW
(
fmt
)
-
4
+
1
;
len
+=
lstrlenW
(
instanceId
)
+
lstrlenW
(
guidStr
);
if
(
ReferenceString
)
if
(
ReferenceString
&&
*
ReferenceString
)
{
/* space for a hash between string and reference string: */
len
+=
lstrlenW
(
ReferenceString
)
+
1
;
...
...
@@ -258,10 +258,10 @@ static LPWSTR SETUPDI_CreateSymbolicLinkPath(LPCWSTR instanceId,
/* replace '\\' with '#' after the "\\\\?\\" beginning */
for
(
ptr
=
strchrW
(
ret
+
4
,
'\\'
);
ptr
;
ptr
=
strchrW
(
ptr
+
1
,
'\\'
))
*
ptr
=
'#'
;
if
(
ReferenceString
)
if
(
ReferenceString
&&
*
ReferenceString
)
{
ret
[
printed
-
1
]
=
'\\'
;
lstrcpyW
(
ret
+
printed
,
ReferenceString
);
ret
[
printed
]
=
'\\'
;
lstrcpyW
(
ret
+
printed
+
1
,
ReferenceString
);
}
}
return
ret
;
...
...
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