Gerald Pfeifer : urlmon: Silence a compiler warning (GCC 4.6).

Alexandre Julliard julliard at winehq.org
Wed Jul 6 13:31:10 CDT 2011


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Tue Jul  5 03:41:35 2011 +0200

urlmon: Silence a compiler warning (GCC 4.6).

---

 dlls/urlmon/uri.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index 6f2897a..33d0eb2 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -3785,6 +3785,7 @@ static HRESULT validate_path(const UriBuilder *builder, parse_data *data, DWORD
         static const WCHAR nullW[] = {0};
         ptr = nullW;
         check_len = FALSE;
+        expected_len = -1;
     }
 
     component = ptr;
@@ -3798,7 +3799,7 @@ static HRESULT validate_path(const UriBuilder *builder, parse_data *data, DWORD
 
     if(!valid || (check_len && expected_len != data->path_len)) {
         TRACE("(%p %p %x): Invalid path component %s.\n", builder, data, flags,
-            debugstr_wn(component, check_len ? expected_len : -1) );
+            debugstr_wn(component, expected_len) );
         return INET_E_INVALID_URL;
     }
 




More information about the wine-cvs mailing list