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
c8ab2a94
Commit
c8ab2a94
authored
Aug 16, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Aug 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Call IInternetProtocolSink_AddRef in HttpProtocol where native does (but just once).
parent
5cdfee81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
http.c
dlls/urlmon/http.c
+6
-6
No files found.
dlls/urlmon/http.c
View file @
c8ab2a94
...
@@ -321,6 +321,9 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
...
@@ -321,6 +321,9 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
TRACE
(
"(%p)->(%s %p %p %08x %d)
\n
"
,
This
,
debugstr_w
(
szUrl
),
pOIProtSink
,
TRACE
(
"(%p)->(%s %p %p %08x %d)
\n
"
,
This
,
debugstr_w
(
szUrl
),
pOIProtSink
,
pOIBindInfo
,
grfPI
,
dwReserved
);
pOIBindInfo
,
grfPI
,
dwReserved
);
IInternetProtocolSink_AddRef
(
pOIProtSink
);
This
->
protocol_sink
=
pOIProtSink
;
memset
(
&
This
->
bind_info
,
0
,
sizeof
(
This
->
bind_info
));
memset
(
&
This
->
bind_info
,
0
,
sizeof
(
This
->
bind_info
));
This
->
bind_info
.
cbSize
=
sizeof
(
BINDINFO
);
This
->
bind_info
.
cbSize
=
sizeof
(
BINDINFO
);
hres
=
IInternetBindInfo_GetBindInfo
(
pOIBindInfo
,
&
This
->
grfBINDF
,
&
This
->
bind_info
);
hres
=
IInternetBindInfo_GetBindInfo
(
pOIBindInfo
,
&
This
->
grfBINDF
,
&
This
->
bind_info
);
...
@@ -354,7 +357,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
...
@@ -354,7 +357,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
url
.
nPort
=
INTERNET_DEFAULT_HTTP_PORT
;
url
.
nPort
=
INTERNET_DEFAULT_HTTP_PORT
;
if
(
!
(
This
->
grfBINDF
&
BINDF_FROMURLMON
))
if
(
!
(
This
->
grfBINDF
&
BINDF_FROMURLMON
))
IInternetProtocolSink_ReportProgress
(
pOIProtS
ink
,
BINDSTATUS_DIRECTBIND
,
NULL
);
IInternetProtocolSink_ReportProgress
(
This
->
protocol_s
ink
,
BINDSTATUS_DIRECTBIND
,
NULL
);
hres
=
IInternetBindInfo_GetBindString
(
pOIBindInfo
,
BINDSTRING_USER_AGENT
,
&
user_agent
,
hres
=
IInternetBindInfo_GetBindString
(
pOIBindInfo
,
BINDSTRING_USER_AGENT
,
&
user_agent
,
1
,
&
num
);
1
,
&
num
);
...
@@ -393,9 +396,6 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
...
@@ -393,9 +396,6 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
goto
done
;
goto
done
;
}
}
IInternetProtocolSink_AddRef
(
pOIProtSink
);
This
->
protocol_sink
=
pOIProtSink
;
/* Native does not check for success of next call, so we won't either */
/* Native does not check for success of next call, so we won't either */
InternetSetStatusCallbackW
(
This
->
internet
,
HTTPPROTOCOL_InternetStatusCallback
);
InternetSetStatusCallbackW
(
This
->
internet
,
HTTPPROTOCOL_InternetStatusCallback
);
...
@@ -434,7 +434,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
...
@@ -434,7 +434,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
goto
done
;
goto
done
;
}
}
hres
=
IInternetProtocolSink_QueryInterface
(
pOIProtS
ink
,
&
IID_IServiceProvider
,
hres
=
IInternetProtocolSink_QueryInterface
(
This
->
protocol_s
ink
,
&
IID_IServiceProvider
,
(
void
**
)
&
service_provider
);
(
void
**
)
&
service_provider
);
if
(
hres
!=
S_OK
)
if
(
hres
!=
S_OK
)
{
{
...
@@ -533,7 +533,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
...
@@ -533,7 +533,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
done:
done:
if
(
hres
!=
S_OK
)
if
(
hres
!=
S_OK
)
{
{
IInternetProtocolSink_ReportResult
(
pOIProtS
ink
,
hres
,
0
,
NULL
);
IInternetProtocolSink_ReportResult
(
This
->
protocol_s
ink
,
hres
,
0
,
NULL
);
HTTPPROTOCOL_Close
(
This
);
HTTPPROTOCOL_Close
(
This
);
}
}
...
...
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