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
93fb279f
Commit
93fb279f
authored
Sep 14, 2018
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Sep 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Properly handle device-less connections.
Signed-off-by:
Pierre Schweitzer
<
pierre@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a220669f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
wnet.c
dlls/mpr/wnet.c
+9
-1
No files found.
dlls/mpr/wnet.c
View file @
93fb279f
...
@@ -2413,6 +2413,7 @@ DWORD WINAPI WNetGetUniversalNameW ( LPCWSTR lpLocalPath, DWORD dwInfoLevel,
...
@@ -2413,6 +2413,7 @@ DWORD WINAPI WNetGetUniversalNameW ( LPCWSTR lpLocalPath, DWORD dwInfoLevel,
DWORD
WINAPI
WNetClearConnections
(
HWND
owner
)
DWORD
WINAPI
WNetClearConnections
(
HWND
owner
)
{
{
HANDLE
connected
;
HANDLE
connected
;
PWSTR
connection
;
DWORD
ret
,
size
,
count
;
DWORD
ret
,
size
,
count
;
NETRESOURCEW
*
resources
,
*
iter
;
NETRESOURCEW
*
resources
,
*
iter
;
...
@@ -2446,7 +2447,14 @@ DWORD WINAPI WNetClearConnections ( HWND owner )
...
@@ -2446,7 +2447,14 @@ DWORD WINAPI WNetClearConnections ( HWND owner )
if
(
ret
==
WN_SUCCESS
||
ret
==
WN_MORE_DATA
)
if
(
ret
==
WN_SUCCESS
||
ret
==
WN_MORE_DATA
)
{
{
for
(
iter
=
resources
;
count
;
count
--
,
iter
++
)
for
(
iter
=
resources
;
count
;
count
--
,
iter
++
)
WNetCancelConnection2W
(
iter
->
lpLocalName
,
0
,
TRUE
);
{
if
(
iter
->
lpLocalName
&&
iter
->
lpLocalName
[
0
])
connection
=
iter
->
lpLocalName
;
else
connection
=
iter
->
lpRemoteName
;
WNetCancelConnection2W
(
connection
,
0
,
TRUE
);
}
}
}
else
else
break
;
break
;
...
...
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