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
779ad051
Commit
779ad051
authored
Feb 10, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make nsIURI::[Get|Set]Username implementation IUri-based.
parent
9cb4c21f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
nsio.c
dlls/mshtml/nsio.c
+18
-11
No files found.
dlls/mshtml/nsio.c
View file @
779ad051
...
...
@@ -1770,26 +1770,33 @@ static nsresult NSAPI nsURI_GetUsername(nsIURL *iface, nsACString *aUsername)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aUsername
);
if
(
This
->
nsuri
)
return
nsIURI_GetUsername
(
This
->
nsuri
,
aUsername
);
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
get_uri_string
(
This
,
Uri_PROPERTY_USER_NAME
,
aUsername
);
}
static
nsresult
NSAPI
nsURI_SetUsername
(
nsIURL
*
iface
,
const
nsACString
*
aUsername
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
const
char
*
usera
;
WCHAR
*
user
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aUsername
));
if
(
This
->
nsuri
)
{
invalidate_uri
(
This
);
return
nsIURI_SetUsername
(
This
->
nsuri
,
aUsername
);
}
if
(
!
ensure_uri_builder
(
This
))
return
NS_ERROR_UNEXPECTED
;
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
nsACString_GetData
(
aUsername
,
&
usera
);
user
=
heap_strdupAtoW
(
usera
);
if
(
!
user
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
IUriBuilder_SetUserName
(
This
->
uri_builder
,
user
);
heap_free
(
user
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
sync_wine_url
(
This
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetPassword
(
nsIURL
*
iface
,
nsACString
*
aPassword
)
...
...
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