Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
50db65a4
Commit
50db65a4
authored
Jun 19, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Jul 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUri_GetUserName.
parent
152a1efd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
39 deletions
+59
-39
uri.c
dlls/urlmon/tests/uri.c
+32
-32
uri.c
dlls/urlmon/uri.c
+27
-7
No files found.
dlls/urlmon/tests/uri.c
View file @
50db65a4
This diff is collapsed.
Click to expand it.
dlls/urlmon/uri.c
View file @
50db65a4
...
...
@@ -893,6 +893,27 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_USER_NAME
:
if
(
This
->
userinfo_start
>
-
1
)
{
/* If userinfo_split is set, that means a password exists
* so the username is only from userinfo_start to userinfo_split.
*/
if
(
This
->
userinfo_split
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
userinfo_start
,
This
->
userinfo_split
);
hres
=
S_OK
;
}
else
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
userinfo_start
,
This
->
userinfo_len
);
hres
=
S_OK
;
}
}
else
{
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
0
);
hres
=
S_FALSE
;
}
if
(
!
(
*
pbstrProperty
))
return
E_OUTOFMEMORY
;
break
;
default:
FIXME
(
"(%p)->(%d %p %x)
\n
"
,
This
,
uriProp
,
pbstrProperty
,
dwFlags
);
hres
=
E_NOTIMPL
;
...
...
@@ -933,6 +954,10 @@ static HRESULT WINAPI Uri_GetPropertyLength(IUri *iface, Uri_PROPERTY uriProp, D
*
pcchProperty
=
This
->
userinfo_len
;
hres
=
(
This
->
userinfo_start
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
case
Uri_PROPERTY_USER_NAME
:
*
pcchProperty
=
(
This
->
userinfo_split
>
-
1
)
?
This
->
userinfo_split
:
This
->
userinfo_len
;
hres
=
(
This
->
userinfo_start
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
default:
FIXME
(
"(%p)->(%d %p %x)
\n
"
,
This
,
uriProp
,
pcchProperty
,
dwFlags
);
hres
=
E_NOTIMPL
;
...
...
@@ -1135,13 +1160,8 @@ static HRESULT WINAPI Uri_GetUserInfo(IUri *iface, BSTR *pstrUserInfo)
static
HRESULT
WINAPI
Uri_GetUserName
(
IUri
*
iface
,
BSTR
*
pstrUserName
)
{
Uri
*
This
=
URI_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrUserName
);
if
(
!
pstrUserName
)
return
E_POINTER
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
pstrUserName
);
return
Uri_GetPropertyBSTR
(
iface
,
Uri_PROPERTY_USER_NAME
,
pstrUserName
,
0
);
}
static
HRESULT
WINAPI
Uri_GetHostType
(
IUri
*
iface
,
DWORD
*
pdwHostType
)
...
...
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