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
e034ddee
Commit
e034ddee
authored
Nov 23, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IMutable::SetMutable implementation.
parent
42d98d2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
nsio.c
dlls/mshtml/nsio.c
+28
-3
No files found.
dlls/mshtml/nsio.c
View file @
e034ddee
...
@@ -66,6 +66,7 @@ struct nsWineURI {
...
@@ -66,6 +66,7 @@ struct nsWineURI {
IUri
*
uri
;
IUri
*
uri
;
IUriBuilder
*
uri_builder
;
IUriBuilder
*
uri_builder
;
BOOL
is_doc_uri
;
BOOL
is_doc_uri
;
BOOL
is_mutable
;
};
};
static
BOOL
ensure_uri
(
nsWineURI
*
This
)
static
BOOL
ensure_uri
(
nsWineURI
*
This
)
...
@@ -1656,6 +1657,11 @@ static void invalidate_uri(nsWineURI *This)
...
@@ -1656,6 +1657,11 @@ static void invalidate_uri(nsWineURI *This)
static
BOOL
ensure_uri_builder
(
nsWineURI
*
This
)
static
BOOL
ensure_uri_builder
(
nsWineURI
*
This
)
{
{
if
(
!
This
->
is_mutable
)
{
WARN
(
"Not mutable URI
\n
"
);
return
FALSE
;
}
if
(
!
This
->
uri_builder
)
{
if
(
!
This
->
uri_builder
)
{
HRESULT
hres
;
HRESULT
hres
;
...
@@ -1792,6 +1798,9 @@ static nsresult NSAPI nsURI_SetSpec(nsIURL *iface, const nsACString *aSpec)
...
@@ -1792,6 +1798,9 @@ static nsresult NSAPI nsURI_SetSpec(nsIURL *iface, const nsACString *aSpec)
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aSpec
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aSpec
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
nsACString_GetData
(
aSpec
,
&
speca
);
nsACString_GetData
(
aSpec
,
&
speca
);
spec
=
heap_strdupAtoW
(
speca
);
spec
=
heap_strdupAtoW
(
speca
);
if
(
!
spec
)
if
(
!
spec
)
...
@@ -2473,6 +2482,9 @@ static nsresult NSAPI nsURL_SetFilePath(nsIURL *iface, const nsACString *aFilePa
...
@@ -2473,6 +2482,9 @@ static nsresult NSAPI nsURL_SetFilePath(nsIURL *iface, const nsACString *aFilePa
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFilePath
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFilePath
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
return
nsIURL_SetPath
(
&
This
->
nsIURL_iface
,
aFilePath
);
return
nsIURL_SetPath
(
&
This
->
nsIURL_iface
,
aFilePath
);
}
}
...
@@ -2595,6 +2607,9 @@ static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileNa
...
@@ -2595,6 +2607,9 @@ static nsresult NSAPI nsURL_SetFileName(nsIURL *iface, const nsACString *aFileNa
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileName
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileName
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
invalidate_uri
(
This
);
return
nsIURL_SetFileName
(
This
->
nsurl
,
aFileName
);
return
nsIURL_SetFileName
(
This
->
nsurl
,
aFileName
);
...
@@ -2623,6 +2638,9 @@ static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFi
...
@@ -2623,6 +2638,9 @@ static nsresult NSAPI nsURL_SetFileBaseName(nsIURL *iface, const nsACString *aFi
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileBaseName
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileBaseName
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
invalidate_uri
(
This
);
return
nsIURL_SetFileBaseName
(
This
->
nsurl
,
aFileBaseName
);
return
nsIURL_SetFileBaseName
(
This
->
nsurl
,
aFileBaseName
);
...
@@ -2647,6 +2665,9 @@ static nsresult NSAPI nsURL_SetFileExtension(nsIURL *iface, const nsACString *aF
...
@@ -2647,6 +2665,9 @@ static nsresult NSAPI nsURL_SetFileExtension(nsIURL *iface, const nsACString *aF
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileExtension
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aFileExtension
));
if
(
!
This
->
is_mutable
)
return
NS_ERROR_UNEXPECTED
;
if
(
This
->
nsurl
)
{
if
(
This
->
nsurl
)
{
invalidate_uri
(
This
);
invalidate_uri
(
This
);
return
nsIURL_SetFileExtension
(
This
->
nsurl
,
aFileExtension
);
return
nsIURL_SetFileExtension
(
This
->
nsurl
,
aFileExtension
);
...
@@ -2766,15 +2787,18 @@ static nsresult NSAPI nsStandardURL_GetMutable(nsIStandardURL *iface, PRBool *aM
...
@@ -2766,15 +2787,18 @@ static nsresult NSAPI nsStandardURL_GetMutable(nsIStandardURL *iface, PRBool *aM
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aMutable
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aMutable
);
*
aMutable
=
T
RUE
;
*
aMutable
=
T
his
->
is_mutable
;
return
NS_OK
;
return
NS_OK
;
}
}
static
nsresult
NSAPI
nsStandardURL_SetMutable
(
nsIStandardURL
*
iface
,
PRBool
aMutable
)
static
nsresult
NSAPI
nsStandardURL_SetMutable
(
nsIStandardURL
*
iface
,
PRBool
aMutable
)
{
{
nsWineURI
*
This
=
impl_from_nsIStandardURL
(
iface
);
nsWineURI
*
This
=
impl_from_nsIStandardURL
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
aMutable
);
return
NS_ERROR_NOT_IMPLEMENTED
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
aMutable
);
This
->
is_mutable
=
aMutable
;
return
NS_OK
;
}
}
static
nsresult
NSAPI
nsStandardURL_Init
(
nsIStandardURL
*
iface
,
PRUint32
aUrlType
,
PRInt32
aDefaultPort
,
static
nsresult
NSAPI
nsStandardURL_Init
(
nsIStandardURL
*
iface
,
PRUint32
aUrlType
,
PRInt32
aDefaultPort
,
...
@@ -2802,6 +2826,7 @@ static nsresult create_nsuri(IUri *iuri, nsIURI *nsuri, HTMLWindow *window, NSCo
...
@@ -2802,6 +2826,7 @@ static nsresult create_nsuri(IUri *iuri, nsIURI *nsuri, HTMLWindow *window, NSCo
ret
->
nsIStandardURL_iface
.
lpVtbl
=
&
nsStandardURLVtbl
;
ret
->
nsIStandardURL_iface
.
lpVtbl
=
&
nsStandardURLVtbl
;
ret
->
ref
=
1
;
ret
->
ref
=
1
;
ret
->
nsuri
=
nsuri
;
ret
->
nsuri
=
nsuri
;
ret
->
is_mutable
=
TRUE
;
set_uri_nscontainer
(
ret
,
container
);
set_uri_nscontainer
(
ret
,
container
);
set_uri_window
(
ret
,
window
);
set_uri_window
(
ret
,
window
);
...
...
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