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
0b34924b
Commit
0b34924b
authored
Aug 02, 2016
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Aug 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Implement WNetCancelConnection2W().
Signed-off-by:
Pierre Schweitzer
<
pierre@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e50116b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
wnet.c
dlls/mpr/wnet.c
+22
-2
No files found.
dlls/mpr/wnet.c
View file @
0b34924b
...
...
@@ -58,6 +58,7 @@ typedef struct _WNetProvider
PF_NPGetResourceInformation
getResourceInformation
;
PF_NPAddConnection
addConnection
;
PF_NPAddConnection3
addConnection3
;
PF_NPCancelConnection
cancelConnection
;
}
WNetProvider
,
*
PWNetProvider
;
typedef
struct
_WNetProviderTable
...
...
@@ -206,8 +207,10 @@ static void _tryLoadProvider(PCWSTR provider)
}
provider
->
addConnection
=
MPR_GETPROC
(
NPAddConnection
);
provider
->
addConnection3
=
MPR_GETPROC
(
NPAddConnection3
);
provider
->
cancelConnection
=
MPR_GETPROC
(
NPCancelConnection
);
TRACE
(
"NPAddConnection %p
\n
"
,
provider
->
addConnection
);
TRACE
(
"NPAddConnection3 %p
\n
"
,
provider
->
addConnection3
);
TRACE
(
"NPCancelConnection %p
\n
"
,
provider
->
cancelConnection
);
providerTable
->
numProviders
++
;
}
else
...
...
@@ -1865,9 +1868,26 @@ DWORD WINAPI WNetCancelConnection2A( LPCSTR lpName, DWORD dwFlags, BOOL fForce )
*/
DWORD
WINAPI
WNetCancelConnection2W
(
LPCWSTR
lpName
,
DWORD
dwFlags
,
BOOL
fForce
)
{
FIXME
(
"(%s, %08X, %d), stub
\n
"
,
debugstr_w
(
lpName
),
dwFlags
,
fForce
);
DWORD
ret
=
WN_NO_NETWORK
;
DWORD
index
;
return
WN_SUCCESS
;
if
(
providerTable
!=
NULL
)
{
for
(
index
=
0
;
index
<
providerTable
->
numProviders
;
index
++
)
{
if
(
providerTable
->
table
[
index
].
getCaps
(
WNNC_CONNECTION
)
&
WNNC_CON_CANCELCONNECTION
)
{
if
(
providerTable
->
table
[
index
].
cancelConnection
)
ret
=
providerTable
->
table
[
index
].
cancelConnection
((
LPWSTR
)
lpName
,
fForce
);
else
ret
=
WN_NO_NETWORK
;
if
(
ret
==
WN_SUCCESS
||
ret
==
WN_OPEN_FILES
)
break
;
}
}
}
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