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
773ff2e8
Commit
773ff2e8
authored
Dec 06, 2018
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Dec 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Implement support for deleting persistent connections.
Signed-off-by:
Pierre Schweitzer
<
pierre@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23a232fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
wnet.c
dlls/mpr/wnet.c
+17
-0
No files found.
dlls/mpr/wnet.c
View file @
773ff2e8
...
@@ -2290,6 +2290,23 @@ DWORD WINAPI WNetCancelConnection2W( LPCWSTR lpName, DWORD dwFlags, BOOL fForce
...
@@ -2290,6 +2290,23 @@ DWORD WINAPI WNetCancelConnection2W( LPCWSTR lpName, DWORD dwFlags, BOOL fForce
}
}
}
}
}
}
if
(
ret
==
WN_SUCCESS
&&
dwFlags
&
CONNECT_UPDATE_PROFILE
)
{
HKEY
user_profile
;
/* FIXME: Only remove it if that's a drive letter */
if
(
isalphaW
(
lpName
[
0
])
&&
lpName
[
1
]
==
':'
&&
RegOpenCurrentUser
(
KEY_ALL_ACCESS
,
&
user_profile
)
==
ERROR_SUCCESS
)
{
WCHAR
subkey
[
10
]
=
{
'N'
,
'e'
,
't'
,
'w'
,
'o'
,
'r'
,
'k'
,
'\\'
,
lpName
[
0
],
0
};
RegDeleteKeyW
(
user_profile
,
subkey
);
RegCloseKey
(
user_profile
);
}
}
return
ret
;
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