urlmon: Fixed bug in IUriBuilder_GetUserName.

This commit is contained in:
Thomas Mullaly 2010-09-07 20:38:38 -04:00 committed by Alexandre Julliard
parent d94d32dd3c
commit dfa7c7e8e6
1 changed files with 1 additions and 2 deletions

View File

@ -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 {