if(!This->window || !This->window->doc) {
FIXME("No document available\n");
return E_FAIL;
- }
+}
return navigate_url(This->window->doc, v);
}
memcpy(url_path + 1, url.lpszUrlPath, url.dwUrlPathLength * sizeof(WCHAR));
url.lpszUrlPath = url_path;
url.dwUrlPathLength = url.dwUrlPathLength + 1;
- }
+}
break;
case INTERNET_SCHEME_HTTP:
if(!url.dwSchemeLength) {
FIXME("Unexpected blank protocol\n");
- return E_NOTIMPL;
+ return E_NOTIMPL;
}else {
WCHAR buf[url.dwSchemeLength + 1];
memcpy(buf, url.lpszScheme, url.dwSchemeLength * sizeof(WCHAR));
buf[url.dwSchemeLength] = ':';
*p = SysAllocStringLen(buf, url.dwSchemeLength + 1);
- }
+}
if(!*p)
return E_OUTOFMEMORY;
return S_OK;
if(!url.dwHostNameLength){
*p = NULL;
return S_OK;
- }
+}
if(url.nPort) {
/* <hostname>:<port> */
if(!url.dwHostNameLength){
*p = NULL;
return S_OK;
- }
+}
*p = SysAllocStringLen(url.lpszHostName, url.dwHostNameLength);
if(!*p)
}else {
const WCHAR empty[] = {0};
*p = SysAllocString(empty);
- }
+}
if(!*p)
return E_OUTOFMEMORY;
if(!url.dwExtraInfoLength){
*p = NULL;
return S_OK;
- }
+}
url.dwExtraInfoLength = strcspnW(url.lpszExtraInfo, hash);
if(!url.dwExtraInfoLength){
*p = NULL;
return S_OK;
- }
+}
hash_pos = strcspnW(url.lpszExtraInfo, hash);
url.dwExtraInfoLength -= hash_pos;