urlmon: Fix copy and paste error (coverity)

André Hentschel nerv at dawncrow.de
Sat Nov 3 11:26:03 CDT 2012


CID 712996
---
 dlls/urlmon/uri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index 18e2ebb..0a68b43 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -272,7 +272,7 @@ static inline BOOL is_drive_path(const WCHAR *str) {
 }
 
 static inline BOOL is_unc_path(const WCHAR *str) {
-    return (str[0] == '\\' && str[0] == '\\');
+    return (str[0] == '\\' && str[1] == '\\');
 }
 
 static inline BOOL is_forbidden_dos_path_char(WCHAR val) {
-- 
1.8.0



-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list