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
21621b28
Commit
21621b28
authored
May 27, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
May 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Return IClassFactory in get_protocol_handler and fix get_protocol.
parent
4ca7a064
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
binding.c
dlls/urlmon/binding.c
+1
-7
session.c
dlls/urlmon/session.c
+11
-5
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-1
No files found.
dlls/urlmon/binding.c
View file @
21621b28
...
@@ -929,7 +929,6 @@ static HRESULT get_callback(IBindCtx *pbc, IBindStatusCallback **callback)
...
@@ -929,7 +929,6 @@ static HRESULT get_callback(IBindCtx *pbc, IBindStatusCallback **callback)
static
HRESULT
get_protocol
(
Binding
*
This
,
LPCWSTR
url
)
static
HRESULT
get_protocol
(
Binding
*
This
,
LPCWSTR
url
)
{
{
IUnknown
*
unk
=
NULL
;
IClassFactory
*
cf
=
NULL
;
IClassFactory
*
cf
=
NULL
;
HRESULT
hres
;
HRESULT
hres
;
...
@@ -945,12 +944,7 @@ static HRESULT get_protocol(Binding *This, LPCWSTR url)
...
@@ -945,12 +944,7 @@ static HRESULT get_protocol(Binding *This, LPCWSTR url)
return
S_OK
;
return
S_OK
;
}
}
hres
=
get_protocol_handler
(
url
,
&
unk
);
hres
=
get_protocol_handler
(
url
,
&
cf
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
IUnknown_Release
(
unk
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
...
...
dlls/urlmon/session.c
View file @
21621b28
...
@@ -130,9 +130,10 @@ IInternetProtocolInfo *get_protocol_info(LPCWSTR url)
...
@@ -130,9 +130,10 @@ IInternetProtocolInfo *get_protocol_info(LPCWSTR url)
return
ret
;
return
ret
;
}
}
HRESULT
get_protocol_handler
(
LPCWSTR
url
,
I
Unknown
**
ret
)
HRESULT
get_protocol_handler
(
LPCWSTR
url
,
I
ClassFactory
**
ret
)
{
{
IClassFactory
*
cf
;
IClassFactory
*
cf
;
IUnknown
*
unk
;
WCHAR
schema
[
64
];
WCHAR
schema
[
64
];
DWORD
schema_len
;
DWORD
schema_len
;
HRESULT
hres
;
HRESULT
hres
;
...
@@ -144,12 +145,17 @@ HRESULT get_protocol_handler(LPCWSTR url, IUnknown **ret)
...
@@ -144,12 +145,17 @@ HRESULT get_protocol_handler(LPCWSTR url, IUnknown **ret)
cf
=
find_name_space
(
schema
);
cf
=
find_name_space
(
schema
);
if
(
cf
)
{
if
(
cf
)
{
hres
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IUnknown
,
(
void
**
)
ret
);
*
ret
=
cf
;
if
(
SUCCEEDED
(
hres
))
return
S_OK
;
return
hres
;
}
}
return
get_protocol_iface
(
schema
,
schema_len
,
ret
);
hres
=
get_protocol_iface
(
schema
,
schema_len
,
&
unk
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IClassFactory
,
(
void
**
)
ret
);
IUnknown_Release
(
unk
);
return
hres
;
}
}
static
HRESULT
WINAPI
InternetSession_QueryInterface
(
IInternetSession
*
iface
,
static
HRESULT
WINAPI
InternetSession_QueryInterface
(
IInternetSession
*
iface
,
...
...
dlls/urlmon/urlmon_main.h
View file @
21621b28
...
@@ -55,7 +55,7 @@ HRESULT UMCreateStreamOnCacheFile(LPCWSTR pszURL, DWORD dwSize, LPWSTR pszFileNa
...
@@ -55,7 +55,7 @@ HRESULT UMCreateStreamOnCacheFile(LPCWSTR pszURL, DWORD dwSize, LPWSTR pszFileNa
void
UMCloseCacheFileStream
(
IUMCacheStream
*
pstr
);
void
UMCloseCacheFileStream
(
IUMCacheStream
*
pstr
);
IInternetProtocolInfo
*
get_protocol_info
(
LPCWSTR
url
);
IInternetProtocolInfo
*
get_protocol_info
(
LPCWSTR
url
);
HRESULT
get_protocol_handler
(
LPCWSTR
url
,
I
Unknown
**
ret
);
HRESULT
get_protocol_handler
(
LPCWSTR
url
,
I
ClassFactory
**
ret
);
HRESULT
start_binding
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
);
HRESULT
start_binding
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
);
...
...
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