aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2012-04-21 14:11:56 -0400
committerS. Davilla <davilla@4pi.com>2012-04-21 14:13:04 -0400
commitf52dd9a555e8e4b087ec6fbf040dc1f1155c4136 (patch)
treedfa4e7ad1646be45dbc8f31b0fd03bce554eeb1c
parenta213d7644bdc8b13a93327b039f7837a8991dbfa (diff)
fixed, failure to broswe for smb shares. this hits all 1st time installs
-rw-r--r--xbmc/filesystem/SmbFile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/filesystem/SmbFile.cpp b/xbmc/filesystem/SmbFile.cpp
index 382553c42b..c39003133f 100644
--- a/xbmc/filesystem/SmbFile.cpp
+++ b/xbmc/filesystem/SmbFile.cpp
@@ -61,7 +61,6 @@ CSMB::CSMB()
m_IdleTimeout = 0;
#endif
m_context = NULL;
- smbc_init(xb_smbc_auth, 0);
}
CSMB::~CSMB()
@@ -149,6 +148,10 @@ void CSMB::Init()
}
#endif
+ // reads smb.conf so this MUST be after we create smb.conf
+ // multiple smbc_init calls are ignored by libsmbclient.
+ smbc_init(xb_smbc_auth, 0);
+
#ifdef TARGET_WINDOWS
// set the log function
set_log_callback(xb_smbc_log);