Commit dfa7c7e8 authored by Thomas Mullaly's avatar Thomas Mullaly Committed by Alexandre Julliard

urlmon: Fixed bug in IUriBuilder_GetUserName.

parent d94d32dd
......@@ -4605,8 +4605,7 @@ static HRESULT WINAPI UriBuilder_GetUserName(IUriBuilder *iface, DWORD *pcchUser
UriBuilder *This = URIBUILDER_THIS(iface);
TRACE("(%p)->(%p %p)\n", This, pcchUserName, ppwzUserName);
if(!This->uri || This->uri->userinfo_start == -1 ||
This->uri->userinfo_start == This->uri->userinfo_split ||
if(!This->uri || This->uri->userinfo_start == -1 || This->uri->userinfo_split == 0 ||
This->modified_props & Uri_HAS_USER_NAME)
return get_builder_component(&This->username, &This->username_len, NULL, 0, ppwzUserName, pcchUserName);
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment