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
3636a252
Commit
3636a252
authored
Sep 03, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added better debug traces for BINDSTATUS values.
parent
c21000ea
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
3 deletions
+67
-3
bindctx.c
dlls/urlmon/bindctx.c
+1
-1
binding.c
dlls/urlmon/binding.c
+2
-1
bindprot.c
dlls/urlmon/bindprot.c
+1
-1
urlmon_main.c
dlls/urlmon/urlmon_main.c
+61
-0
urlmon_main.h
dlls/urlmon/urlmon_main.h
+2
-0
No files found.
dlls/urlmon/bindctx.c
View file @
3636a252
...
...
@@ -158,7 +158,7 @@ static HRESULT WINAPI BindStatusCallback_OnProgress(IBindStatusCallbackEx *iface
{
BindStatusCallback
*
This
=
impl_from_IBindStatusCallbackEx
(
iface
);
TRACE
(
"%p)->(%u %u %
u %s)
\n
"
,
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
TRACE
(
"%p)->(%u %u %
s %s)
\n
"
,
This
,
ulProgress
,
ulProgressMax
,
debugstr_bindstatus
(
ulStatusCode
)
,
debugstr_w
(
szStatusText
));
return
IBindStatusCallback_OnProgress
(
This
->
callback
,
ulProgress
,
...
...
dlls/urlmon/binding.c
View file @
3636a252
...
...
@@ -980,7 +980,7 @@ static HRESULT WINAPI InternetProtocolSink_ReportProgress(IInternetProtocolSink
{
Binding
*
This
=
impl_from_IInternetProtocolSink
(
iface
);
TRACE
(
"(%p)->(%
u %s)
\n
"
,
This
,
ulStatusCode
,
debugstr_w
(
szStatusText
));
TRACE
(
"(%p)->(%
s %s)
\n
"
,
This
,
debugstr_bindstatus
(
ulStatusCode
)
,
debugstr_w
(
szStatusText
));
switch
(
ulStatusCode
)
{
case
BINDSTATUS_FINDINGRESOURCE
:
...
...
@@ -1133,6 +1133,7 @@ static HRESULT WINAPI InternetProtocolSink_ReportResult(IInternetProtocolSink *i
TRACE
(
"(%p)->(%08x %d %s)
\n
"
,
This
,
hrResult
,
dwError
,
debugstr_w
(
szResult
));
stop_binding
(
This
,
hrResult
,
szResult
);
IInternetProtocolEx_Terminate
(
&
This
->
protocol
->
IInternetProtocolEx_iface
,
0
);
return
S_OK
;
}
...
...
dlls/urlmon/bindprot.c
View file @
3636a252
...
...
@@ -822,7 +822,7 @@ static HRESULT WINAPI ProtocolSinkHandler_ReportProgress(IInternetProtocolSink *
{
BindProtocol
*
This
=
impl_from_IInternetProtocolSinkHandler
(
iface
);
TRACE
(
"(%p)->(%
u %s)
\n
"
,
This
,
status_code
,
debugstr_w
(
status_text
));
TRACE
(
"(%p)->(%
s %s)
\n
"
,
This
,
debugstr_bindstatus
(
status_code
)
,
debugstr_w
(
status_text
));
if
(
!
This
->
protocol_sink
)
return
S_OK
;
...
...
dlls/urlmon/urlmon_main.c
View file @
3636a252
...
...
@@ -166,6 +166,67 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
return
TRUE
;
}
const
char
*
debugstr_bindstatus
(
ULONG
status
)
{
switch
(
status
)
{
#define X(x) case x: return #x; break
X
(
BINDSTATUS_FINDINGRESOURCE
);
X
(
BINDSTATUS_CONNECTING
);
X
(
BINDSTATUS_REDIRECTING
);
X
(
BINDSTATUS_BEGINDOWNLOADDATA
);
X
(
BINDSTATUS_DOWNLOADINGDATA
);
X
(
BINDSTATUS_ENDDOWNLOADDATA
);
X
(
BINDSTATUS_BEGINDOWNLOADCOMPONENTS
);
X
(
BINDSTATUS_INSTALLINGCOMPONENTS
);
X
(
BINDSTATUS_ENDDOWNLOADCOMPONENTS
);
X
(
BINDSTATUS_USINGCACHEDCOPY
);
X
(
BINDSTATUS_SENDINGREQUEST
);
X
(
BINDSTATUS_CLASSIDAVAILABLE
);
X
(
BINDSTATUS_MIMETYPEAVAILABLE
);
X
(
BINDSTATUS_CACHEFILENAMEAVAILABLE
);
X
(
BINDSTATUS_BEGINSYNCOPERATION
);
X
(
BINDSTATUS_ENDSYNCOPERATION
);
X
(
BINDSTATUS_BEGINUPLOADDATA
);
X
(
BINDSTATUS_UPLOADINGDATA
);
X
(
BINDSTATUS_ENDUPLOADINGDATA
);
X
(
BINDSTATUS_PROTOCOLCLASSID
);
X
(
BINDSTATUS_ENCODING
);
X
(
BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE
);
X
(
BINDSTATUS_CLASSINSTALLLOCATION
);
X
(
BINDSTATUS_DECODING
);
X
(
BINDSTATUS_LOADINGMIMEHANDLER
);
X
(
BINDSTATUS_CONTENTDISPOSITIONATTACH
);
X
(
BINDSTATUS_FILTERREPORTMIMETYPE
);
X
(
BINDSTATUS_CLSIDCANINSTANTIATE
);
X
(
BINDSTATUS_IUNKNOWNAVAILABLE
);
X
(
BINDSTATUS_DIRECTBIND
);
X
(
BINDSTATUS_RAWMIMETYPE
);
X
(
BINDSTATUS_PROXYDETECTING
);
X
(
BINDSTATUS_ACCEPTRANGES
);
X
(
BINDSTATUS_COOKIE_SENT
);
X
(
BINDSTATUS_COMPACT_POLICY_RECEIVED
);
X
(
BINDSTATUS_COOKIE_SUPPRESSED
);
X
(
BINDSTATUS_COOKIE_STATE_UNKNOWN
);
X
(
BINDSTATUS_COOKIE_STATE_ACCEPT
);
X
(
BINDSTATUS_COOKIE_STATE_REJECT
);
X
(
BINDSTATUS_COOKIE_STATE_PROMPT
);
X
(
BINDSTATUS_COOKIE_STATE_LEASH
);
X
(
BINDSTATUS_COOKIE_STATE_DOWNGRADE
);
X
(
BINDSTATUS_POLICY_HREF
);
X
(
BINDSTATUS_P3P_HEADER
);
X
(
BINDSTATUS_SESSION_COOKIE_RECEIVED
);
X
(
BINDSTATUS_PERSISTENT_COOKIE_RECEIVED
);
X
(
BINDSTATUS_SESSION_COOKIES_ALLOWED
);
X
(
BINDSTATUS_CACHECONTROL
);
X
(
BINDSTATUS_CONTENTDISPOSITIONFILENAME
);
X
(
BINDSTATUS_MIMETEXTPLAINMISMATCH
);
X
(
BINDSTATUS_PUBLISHERAVAILABLE
);
X
(
BINDSTATUS_DISPLAYNAMEAVAILABLE
);
#undef X
default:
return
wine_dbg_sprintf
(
"(invalid status %u)"
,
status
);
}
}
/***********************************************************************
* DllInstall (URLMON.@)
...
...
dlls/urlmon/urlmon_main.h
View file @
3636a252
...
...
@@ -221,6 +221,8 @@ tls_data_t *get_tls_data(void) DECLSPEC_HIDDEN;
HWND
get_notif_hwnd
(
void
)
DECLSPEC_HIDDEN
;
void
release_notif_hwnd
(
HWND
)
DECLSPEC_HIDDEN
;
const
char
*
debugstr_bindstatus
(
ULONG
)
DECLSPEC_HIDDEN
;
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
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