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
9c6fca1f
Commit
9c6fca1f
authored
Nov 28, 2007
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: The callback parameter can be null, check pointer before using.
parent
fd812bdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
8 deletions
+40
-8
umstream.c
dlls/urlmon/umstream.c
+40
-8
No files found.
dlls/urlmon/umstream.c
View file @
9c6fca1f
...
...
@@ -410,54 +410,86 @@ static HRESULT WINAPI ProxyBindStatusCallback_OnStartBinding(IBindStatusCallback
IBinding
*
pib
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnStartBinding
(
This
->
pBSC
,
dwReserved
,
pib
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnStartBinding
(
This
->
pBSC
,
dwReserved
,
pib
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_GetPriority
(
IBindStatusCallback
*
iface
,
LONG
*
pnPriority
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_GetPriority
(
This
->
pBSC
,
pnPriority
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_GetPriority
(
This
->
pBSC
,
pnPriority
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_OnLowResource
(
IBindStatusCallback
*
iface
,
DWORD
reserved
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnLowResource
(
This
->
pBSC
,
reserved
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnLowResource
(
This
->
pBSC
,
reserved
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_OnProgress
(
IBindStatusCallback
*
iface
,
ULONG
ulProgress
,
ULONG
ulProgressMax
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnProgress
(
This
->
pBSC
,
ulProgress
,
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnProgress
(
This
->
pBSC
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
szStatusText
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_OnStopBinding
(
IBindStatusCallback
*
iface
,
HRESULT
hresult
,
LPCWSTR
szError
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnStopBinding
(
This
->
pBSC
,
hresult
,
szError
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnStopBinding
(
This
->
pBSC
,
hresult
,
szError
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_GetBindInfo
(
IBindStatusCallback
*
iface
,
DWORD
*
grfBINDF
,
BINDINFO
*
pbindinfo
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_GetBindInfo
(
This
->
pBSC
,
grfBINDF
,
pbindinfo
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_GetBindInfo
(
This
->
pBSC
,
grfBINDF
,
pbindinfo
);
return
E_INVALIDARG
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_OnDataAvailable
(
IBindStatusCallback
*
iface
,
DWORD
grfBSCF
,
DWORD
dwSize
,
FORMATETC
*
pformatetc
,
STGMEDIUM
*
pstgmed
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnDataAvailable
(
This
->
pBSC
,
grfBSCF
,
dwSize
,
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnDataAvailable
(
This
->
pBSC
,
grfBSCF
,
dwSize
,
pformatetc
,
pstgmed
);
return
S_OK
;
}
static
HRESULT
WINAPI
ProxyBindStatusCallback_OnObjectAvailable
(
IBindStatusCallback
*
iface
,
REFIID
riid
,
IUnknown
*
punk
)
{
ProxyBindStatusCallback
*
This
=
(
ProxyBindStatusCallback
*
)
iface
;
return
IBindStatusCallback_OnObjectAvailable
(
This
->
pBSC
,
riid
,
punk
);
if
(
This
->
pBSC
)
return
IBindStatusCallback_OnObjectAvailable
(
This
->
pBSC
,
riid
,
punk
);
return
S_OK
;
}
static
HRESULT
WINAPI
BlockingBindStatusCallback_OnDataAvailable
(
IBindStatusCallback
*
iface
,
DWORD
grfBSCF
,
...
...
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