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
159c23e1
Commit
159c23e1
authored
Oct 04, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added Abort implementation to wininet-based protocols.
parent
140f08bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
6 deletions
+26
-6
ftp.c
dlls/urlmon/ftp.c
+4
-2
gopher.c
dlls/urlmon/gopher.c
+4
-2
http.c
dlls/urlmon/http.c
+5
-2
protocol.c
dlls/urlmon/protocol.c
+12
-0
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-0
No files found.
dlls/urlmon/ftp.c
View file @
159c23e1
...
...
@@ -186,8 +186,10 @@ static HRESULT WINAPI FtpProtocol_Abort(IInternetProtocol *iface, HRESULT hrReas
DWORD
dwOptions
)
{
FtpProtocol
*
This
=
PROTOCOL_THIS
(
iface
);
FIXME
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
protocol_abort
(
&
This
->
base
,
hrReason
);
}
static
HRESULT
WINAPI
FtpProtocol_Terminate
(
IInternetProtocol
*
iface
,
DWORD
dwOptions
)
...
...
dlls/urlmon/gopher.c
View file @
159c23e1
...
...
@@ -161,8 +161,10 @@ static HRESULT WINAPI GopherProtocol_Abort(IInternetProtocol *iface, HRESULT hrR
DWORD
dwOptions
)
{
GopherProtocol
*
This
=
PROTOCOL_THIS
(
iface
);
FIXME
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
protocol_abort
(
&
This
->
base
,
hrReason
);
}
static
HRESULT
WINAPI
GopherProtocol_Terminate
(
IInternetProtocol
*
iface
,
DWORD
dwOptions
)
...
...
dlls/urlmon/http.c
View file @
159c23e1
...
...
@@ -162,6 +162,7 @@ static HRESULT HttpProtocol_open_request(Protocol *prot, IUri *uri, DWORD reques
&
IID_IHttpNegotiate
,
(
void
**
)
&
This
->
http_negotiate
);
if
(
hres
!=
S_OK
)
{
WARN
(
"IServiceProvider_QueryService IID_IHttpNegotiate failed: %08x
\n
"
,
hres
);
IServiceProvider_Release
(
service_provider
);
return
hres
;
}
...
...
@@ -438,8 +439,10 @@ static HRESULT WINAPI HttpProtocol_Abort(IInternetProtocol *iface, HRESULT hrRea
DWORD
dwOptions
)
{
HttpProtocol
*
This
=
PROTOCOL_THIS
(
iface
);
FIXME
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%08x %08x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
protocol_abort
(
&
This
->
base
,
hrReason
);
}
static
HRESULT
WINAPI
HttpProtocol_Terminate
(
IInternetProtocol
*
iface
,
DWORD
dwOptions
)
...
...
dlls/urlmon/protocol.c
View file @
159c23e1
...
...
@@ -428,6 +428,18 @@ HRESULT protocol_unlock_request(Protocol *protocol)
return
S_OK
;
}
HRESULT
protocol_abort
(
Protocol
*
protocol
,
HRESULT
reason
)
{
if
(
!
protocol
->
protocol_sink
)
return
S_OK
;
if
(
protocol
->
flags
&
FLAG_RESULT_REPORTED
)
return
INET_E_RESULT_DISPATCHED
;
report_result
(
protocol
,
reason
);
return
S_OK
;
}
void
protocol_close_connection
(
Protocol
*
protocol
)
{
protocol
->
vtbl
->
close_connection
(
protocol
);
...
...
dlls/urlmon/urlmon_main.h
View file @
159c23e1
...
...
@@ -115,6 +115,7 @@ HRESULT protocol_continue(Protocol*,PROTOCOLDATA*);
HRESULT
protocol_read
(
Protocol
*
,
void
*
,
ULONG
,
ULONG
*
);
HRESULT
protocol_lock_request
(
Protocol
*
);
HRESULT
protocol_unlock_request
(
Protocol
*
);
HRESULT
protocol_abort
(
Protocol
*
,
HRESULT
);
void
protocol_close_connection
(
Protocol
*
);
typedef
struct
{
...
...
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