Vincent Povirk : winebrowser: Add traces for file uri conversion steps.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 2 15:19:15 CDT 2014


Module: wine
Branch: master
Commit: c5f000632f75010739c0b7c21e85c368e8a1c9ad
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c5f000632f75010739c0b7c21e85c368e8a1c9ad

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Tue Jul  1 11:37:39 2014 -0500

winebrowser: Add traces for file uri conversion steps.

---

 programs/winebrowser/main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/programs/winebrowser/main.c b/programs/winebrowser/main.c
index 6ce7707..6938e1e 100644
--- a/programs/winebrowser/main.c
+++ b/programs/winebrowser/main.c
@@ -383,9 +383,12 @@ static IUri *convert_file_uri(IUri *uri)
     if(FAILED(hres))
         return NULL;
 
+    WINE_TRACE("Windows path: %s\n", wine_dbgstr_w(filename));
+
     unixpath = wine_get_unix_file_name_ptr(filename);
     SysFreeString(filename);
     if(unixpath && stat(unixpath, &dummy) >= 0) {
+        WINE_TRACE("Unix path: %s\n", wine_dbgstr_a(unixpath));
         new_path = encode_unix_path(unixpath);
         HeapFree(GetProcessHeap(), 0, unixpath);
     }else {
@@ -394,6 +397,8 @@ static IUri *convert_file_uri(IUri *uri)
         new_path = NULL;
     }
 
+    WINE_TRACE("New path: %s\n", wine_dbgstr_w(new_path));
+
     hres = CreateIUriBuilder(uri, 0, 0, &uri_builder);
     if(SUCCEEDED(hres) && new_path)
         hres = IUriBuilder_SetPath(uri_builder, new_path);




More information about the wine-cvs mailing list