mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:34:46 +00:00
winebrowser: Add traces for file uri conversion steps.
This commit is contained in:
parent
ee17213f37
commit
c5f000632f
|
@ -383,9 +383,12 @@ static IUri *convert_file_uri(IUri *uri)
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
WINE_TRACE("Windows path: %s\n", wine_dbgstr_w(filename));
|
||||||
|
|
||||||
unixpath = wine_get_unix_file_name_ptr(filename);
|
unixpath = wine_get_unix_file_name_ptr(filename);
|
||||||
SysFreeString(filename);
|
SysFreeString(filename);
|
||||||
if(unixpath && stat(unixpath, &dummy) >= 0) {
|
if(unixpath && stat(unixpath, &dummy) >= 0) {
|
||||||
|
WINE_TRACE("Unix path: %s\n", wine_dbgstr_a(unixpath));
|
||||||
new_path = encode_unix_path(unixpath);
|
new_path = encode_unix_path(unixpath);
|
||||||
HeapFree(GetProcessHeap(), 0, unixpath);
|
HeapFree(GetProcessHeap(), 0, unixpath);
|
||||||
}else {
|
}else {
|
||||||
|
@ -394,6 +397,8 @@ static IUri *convert_file_uri(IUri *uri)
|
||||||
new_path = NULL;
|
new_path = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WINE_TRACE("New path: %s\n", wine_dbgstr_w(new_path));
|
||||||
|
|
||||||
hres = CreateIUriBuilder(uri, 0, 0, &uri_builder);
|
hres = CreateIUriBuilder(uri, 0, 0, &uri_builder);
|
||||||
if(SUCCEEDED(hres) && new_path)
|
if(SUCCEEDED(hres) && new_path)
|
||||||
hres = IUriBuilder_SetPath(uri_builder, new_path);
|
hres = IUriBuilder_SetPath(uri_builder, new_path);
|
||||||
|
|
Loading…
Reference in a new issue