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
80eb2fa0
Commit
80eb2fa0
authored
Jan 25, 2016
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Jan 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Add support for REG_EXPAND_SZ for providers path.
Signed-off-by:
Pierre Schweitzer
<
pierre@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
198e0d5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
wnet.c
dlls/mpr/wnet.c
+8
-2
No files found.
dlls/mpr/wnet.c
View file @
80eb2fa0
...
...
@@ -133,11 +133,17 @@ static void _tryLoadProvider(PCWSTR provider)
DWORD
type
,
size
=
sizeof
(
providerPath
);
if
(
RegQueryValueExW
(
hKey
,
szProviderPath
,
NULL
,
&
type
,
(
LPBYTE
)
providerPath
,
&
size
)
==
ERROR_SUCCESS
&&
type
==
REG_SZ
)
(
LPBYTE
)
providerPath
,
&
size
)
==
ERROR_SUCCESS
&&
(
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
)
)
{
static
const
WCHAR
szProviderName
[]
=
{
'N'
,
'a'
,
'm'
,
'e'
,
0
};
PWSTR
name
=
NULL
;
if
(
type
==
REG_EXPAND_SZ
)
{
WCHAR
path
[
MAX_PATH
];
if
(
ExpandEnvironmentStringsW
(
providerPath
,
path
,
MAX_PATH
))
lstrcpyW
(
providerPath
,
path
);
}
size
=
0
;
RegQueryValueExW
(
hKey
,
szProviderName
,
NULL
,
NULL
,
NULL
,
&
size
);
if
(
size
)
...
...
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