[PATCH 5/6] urlmon: Add new on_error function to protocol vtbl.
David Hedberg
dhedberg at codeweavers.com
Tue Dec 21 17:50:27 CST 2010
---
dlls/urlmon/protocol.c | 6 +++++-
dlls/urlmon/urlmon_main.h | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/protocol.c b/dlls/urlmon/protocol.c
index 669343b..bb17453 100644
--- a/dlls/urlmon/protocol.c
+++ b/dlls/urlmon/protocol.c
@@ -107,7 +107,11 @@ static void request_complete(Protocol *protocol, INTERNET_ASYNC_RESULT *ar)
TRACE("(%p)->(%p)\n", protocol, ar);
if(!ar->dwResult) {
- WARN("request failed: %d\n", ar->dwError);
+ if(protocol->vtbl->on_error)
+ protocol->vtbl->on_error(protocol, ar->dwError);
+ else
+ WARN("request failed: %d\n", ar->dwError);
+
return;
}
diff --git a/dlls/urlmon/urlmon_main.h b/dlls/urlmon/urlmon_main.h
index ea33f15..90cb2e5 100644
--- a/dlls/urlmon/urlmon_main.h
+++ b/dlls/urlmon/urlmon_main.h
@@ -113,6 +113,7 @@ struct ProtocolVtbl {
HRESULT (*end_request)(Protocol*);
HRESULT (*start_downloading)(Protocol*);
void (*close_connection)(Protocol*);
+ void (*on_error)(Protocol*,DWORD);
};
HRESULT protocol_start(Protocol*,IInternetProtocol*,IUri*,IInternetProtocolSink*,IInternetBindInfo*);
--
1.7.3.4
More information about the wine-patches
mailing list