[vlc-commits] smb: fix inverted logic

Rémi Denis-Courmont git at videolan.org
Sun Mar 18 18:40:06 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 18 19:12:06 2018 +0200| [683c8d53a627177ff450df25e64c56c01b45f9a7] | committer: Rémi Denis-Courmont

smb: fix inverted logic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=683c8d53a627177ff450df25e64c56c01b45f9a7
---

 modules/access/smb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/smb.c b/modules/access/smb.c
index 1ca3cf68eb..17dbe466d5 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -527,7 +527,7 @@ static void Win32AddConnection( stream_t *p_access, const char *psz_server,
 
     i_result = WNetAddConnection2( &net_resource, psz_pwd, psz_user, 0 );
 
-    if( i_result != NO_ERROR )
+    if( i_result == NO_ERROR )
     {
         msg_Dbg( p_access, "connected to %s", psz_remote );
     }



More information about the vlc-commits mailing list