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
6a6f9158
Commit
6a6f9158
authored
Aug 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added default GetSpec implementation.
parent
114a1a22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
nsio.c
dlls/mshtml/nsio.c
+33
-2
No files found.
dlls/mshtml/nsio.c
View file @
6a6f9158
...
...
@@ -53,6 +53,7 @@ typedef struct {
nsIURI
*
uri
;
NSContainer
*
container
;
IMoniker
*
mon
;
LPSTR
spec
;
}
nsURI
;
#define NSURI(x) ((nsIURI*) &(x)->lpWineURIVtbl)
...
...
@@ -1050,6 +1051,9 @@ static nsrefcnt NSAPI nsURI_Release(nsIWineURI *iface)
nsIWebBrowserChrome_Release
(
NSWBCHROME
(
This
->
container
));
if
(
This
->
uri
)
nsIURI_Release
(
This
->
uri
);
if
(
This
->
mon
)
IMoniker_Release
(
This
->
mon
);
mshtml_free
(
This
->
spec
);
mshtml_free
(
This
);
}
...
...
@@ -1065,7 +1069,12 @@ static nsresult NSAPI nsURI_GetSpec(nsIWineURI *iface, nsACString *aSpec)
if
(
This
->
uri
)
return
nsIURI_GetSpec
(
This
->
uri
,
aSpec
);
FIXME
(
"default action not implemented
\n
"
);
if
(
This
->
spec
)
{
nsACString_Init
(
aSpec
,
This
->
spec
);
return
NS_OK
;
}
WARN
(
"mon and uri are NULL
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
}
...
...
@@ -1459,10 +1468,31 @@ static nsresult NSAPI nsURI_SetMoniker(nsIWineURI *iface, IMoniker *aMoniker)
if
(
This
->
mon
)
{
WARN
(
"Moniker already set: %p
\n
"
,
This
->
container
);
IMoniker_Release
(
This
->
mon
);
mshtml_free
(
This
->
spec
);
This
->
spec
=
NULL
;
}
if
(
aMoniker
)
if
(
aMoniker
)
{
LPWSTR
url
=
NULL
;
HRESULT
hres
;
hres
=
IMoniker_GetDisplayName
(
aMoniker
,
NULL
,
NULL
,
&
url
);
if
(
SUCCEEDED
(
hres
))
{
DWORD
len
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
url
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
This
->
spec
=
mshtml_alloc
(
len
*
sizeof
(
WCHAR
));
WideCharToMultiByte
(
CP_ACP
,
0
,
url
,
-
1
,
This
->
spec
,
-
1
,
NULL
,
NULL
);
CoTaskMemFree
(
url
);
TRACE
(
"spec %s
\n
"
,
debugstr_a
(
This
->
spec
));
}
else
{
ERR
(
"GetDisplayName failed: %08lx
\n
"
,
hres
);
}
IMoniker_AddRef
(
aMoniker
);
}
This
->
mon
=
aMoniker
;
return
NS_OK
;
...
...
@@ -1515,6 +1545,7 @@ static nsresult create_uri(nsIURI *uri, NSContainer *container, nsIURI **_retval
ret
->
uri
=
uri
;
ret
->
container
=
container
;
ret
->
mon
=
NULL
;
ret
->
spec
=
NULL
;
if
(
container
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
container
));
...
...
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