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
d7390471
Commit
d7390471
authored
Nov 14, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move BindToStorage hack to the separated function.
parent
58fdd892
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
4 deletions
+37
-4
umon.c
dlls/urlmon/umon.c
+37
-4
No files found.
dlls/urlmon/umon.c
View file @
d7390471
...
@@ -547,13 +547,12 @@ static void CALLBACK URLMON_InternetCallback(HINTERNET hinet, /*DWORD_PTR*/ DWOR
...
@@ -547,13 +547,12 @@ static void CALLBACK URLMON_InternetCallback(HINTERNET hinet, /*DWORD_PTR*/ DWOR
/******************************************************************************
/******************************************************************************
* URLMoniker_BindToStorage
* URLMoniker_BindToStorage
******************************************************************************/
******************************************************************************/
static
HRESULT
WINAPI
URLMonikerImpl_BindToStorage
(
IMoniker
*
ifac
e
,
static
HRESULT
URLMonikerImpl_BindToStorage_hack
(
LPCWSTR
URLNam
e
,
IBindCtx
*
pbc
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
IMoniker
*
pmkToLeft
,
REFIID
riid
,
REFIID
riid
,
VOID
**
ppvObject
)
VOID
**
ppvObject
)
{
{
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
HRESULT
hres
;
HRESULT
hres
;
BINDINFO
bi
;
BINDINFO
bi
;
DWORD
bindf
;
DWORD
bindf
;
...
@@ -561,6 +560,9 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
...
@@ -561,6 +560,9 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
Binding
*
bind
;
Binding
*
bind
;
int
len
;
int
len
;
WARN
(
"(%s %p %p %s %p)
\n
"
,
debugstr_w
(
URLName
),
pbc
,
pmkToLeft
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
pmkToLeft
)
{
if
(
pmkToLeft
)
{
FIXME
(
"pmkToLeft != NULL
\n
"
);
FIXME
(
"pmkToLeft != NULL
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -575,9 +577,9 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
...
@@ -575,9 +577,9 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
bind
->
ref
=
1
;
bind
->
ref
=
1
;
URLMON_LockModule
();
URLMON_LockModule
();
len
=
lstrlenW
(
This
->
URLName
)
+
1
;
len
=
lstrlenW
(
URLName
)
+
1
;
bind
->
URLName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
bind
->
URLName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
memcpy
(
bind
->
URLName
,
This
->
URLName
,
len
*
sizeof
(
WCHAR
));
memcpy
(
bind
->
URLName
,
URLName
,
len
*
sizeof
(
WCHAR
));
hres
=
UMCreateStreamOnCacheFile
(
bind
->
URLName
,
0
,
szFileName
,
&
bind
->
hCacheFile
,
&
bind
->
pstrCache
);
hres
=
UMCreateStreamOnCacheFile
(
bind
->
URLName
,
0
,
szFileName
,
&
bind
->
hCacheFile
,
&
bind
->
pstrCache
);
...
@@ -855,6 +857,37 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
...
@@ -855,6 +857,37 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
return
hres
;
return
hres
;
}
}
static
HRESULT
WINAPI
URLMonikerImpl_BindToStorage
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
REFIID
riid
,
VOID
**
ppvObject
)
{
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
WCHAR
schema
[
64
];
BOOL
bret
;
URL_COMPONENTSW
url
=
{
sizeof
(
URL_COMPONENTSW
),
schema
,
sizeof
(
schema
)
/
sizeof
(
WCHAR
),
0
,
NULL
,
0
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
0
};
bret
=
InternetCrackUrlW
(
This
->
URLName
,
0
,
ICU_ESCAPE
,
&
url
);
if
(
!
bret
)
{
ERR
(
"InternetCrackUrl failed: %ld
\n
"
,
GetLastError
());
return
E_FAIL
;
}
if
(
url
.
nScheme
==
INTERNET_SCHEME_HTTP
||
url
.
nScheme
==
INTERNET_SCHEME_HTTPS
||
url
.
nScheme
==
INTERNET_SCHEME_FTP
||
url
.
nScheme
==
INTERNET_SCHEME_GOPHER
||
url
.
nScheme
==
INTERNET_SCHEME_FILE
)
return
URLMonikerImpl_BindToStorage_hack
(
This
->
URLName
,
pbc
,
pmkToLeft
,
riid
,
ppvObject
);
FIXME
(
"(%p)->(%p %p %s %p)
\n
"
,
This
,
pbc
,
pmkToLeft
,
debugstr_guid
(
riid
),
ppvObject
);
return
E_NOTIMPL
;
}
/******************************************************************************
/******************************************************************************
* URLMoniker_Reduce
* URLMoniker_Reduce
******************************************************************************/
******************************************************************************/
...
...
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