"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msxml3/bsc.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

bsc.c  (wine-5.12.tar.xz):bsc.c  (wine-5.13.tar.xz)
skipping to change at line 245 skipping to change at line 245
bsc_OnStartBinding, bsc_OnStartBinding,
bsc_GetPriority, bsc_GetPriority,
bsc_OnLowResource, bsc_OnLowResource,
bsc_OnProgress, bsc_OnProgress,
bsc_OnStopBinding, bsc_OnStopBinding,
bsc_GetBindInfo, bsc_GetBindInfo,
bsc_OnDataAvailable, bsc_OnDataAvailable,
bsc_OnObjectAvailable bsc_OnObjectAvailable
}; };
HRESULT create_uri(const WCHAR *url, IUri **uri) HRESULT create_uri(IUri *base, const WCHAR *url, IUri **uri)
{ {
WCHAR fileUrl[INTERNET_MAX_URL_LENGTH]; WCHAR fileUrl[INTERNET_MAX_URL_LENGTH];
HRESULT hr;
TRACE("%s\n", debugstr_w(url)); TRACE("%s\n", debugstr_w(url));
if (!PathIsURLW(url)) if (!PathIsURLW(url))
{ {
WCHAR fullpath[MAX_PATH]; WCHAR fullpath[MAX_PATH];
DWORD needed = ARRAY_SIZE(fileUrl); DWORD needed = ARRAY_SIZE(fileUrl);
lstrcpynW(fileUrl, url, ARRAY_SIZE(fileUrl)); lstrcpynW(fileUrl, url, ARRAY_SIZE(fileUrl));
UrlUnescapeW(fileUrl, NULL, NULL, URL_UNESCAPE_INPLACE); UrlUnescapeW(fileUrl, NULL, NULL, URL_UNESCAPE_INPLACE);
skipping to change at line 274 skipping to change at line 275
if (FAILED(UrlApplySchemeW(fullpath, fileUrl, &needed, URL_APPLY_GUESSSC HEME | URL_APPLY_GUESSFILE | if (FAILED(UrlApplySchemeW(fullpath, fileUrl, &needed, URL_APPLY_GUESSSC HEME | URL_APPLY_GUESSFILE |
URL_APPLY_DEFAULT))) URL_APPLY_DEFAULT)))
{ {
ERR("Failed to apply url scheme.\n"); ERR("Failed to apply url scheme.\n");
return E_FAIL; return E_FAIL;
} }
url = fileUrl; url = fileUrl;
} }
return CreateUri(url, Uri_CREATE_ALLOW_RELATIVE | Uri_CREATE_ALLOW_IMPLICIT_ hr = CreateUri(url, Uri_CREATE_ALLOW_RELATIVE | Uri_CREATE_ALLOW_IMPLICIT_FI
FILE_SCHEME, 0, uri); LE_SCHEME, 0, uri);
if (hr == S_OK && base)
{
IUri *rebased_uri;
hr = CoInternetCombineIUri(base, *uri, 0, &rebased_uri, 0);
IUri_Release(*uri);
*uri = rebased_uri;
}
return hr;
} }
HRESULT create_moniker_from_url(LPCWSTR url, IMoniker **mon) HRESULT create_moniker_from_url(LPCWSTR url, IMoniker **mon)
{ {
HRESULT hr; HRESULT hr;
IUri *uri; IUri *uri;
TRACE("%s\n", debugstr_w(url)); TRACE("%s\n", debugstr_w(url));
if (FAILED(hr = create_uri(url, &uri))) if (FAILED(hr = create_uri(NULL, url, &uri)))
return hr; return hr;
hr = CreateURLMonikerEx2(NULL, uri, mon, 0); hr = CreateURLMonikerEx2(NULL, uri, mon, 0);
IUri_Release(uri); IUri_Release(uri);
return hr; return hr;
} }
HRESULT bind_url(IMoniker *mon, HRESULT (*onDataAvailable)(void*,char*,DWORD), HRESULT bind_url(IMoniker *mon, HRESULT (*onDataAvailable)(void*,char*,DWORD),
void *obj, bsc_t **ret) void *obj, bsc_t **ret)
{ {
 End of changes. 4 change blocks. 
4 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)