From f52dd9a555e8e4b087ec6fbf040dc1f1155c4136 Mon Sep 17 00:00:00 2001 From: "S. Davilla" Date: Sat, 21 Apr 2012 14:11:56 -0400 Subject: fixed, failure to broswe for smb shares. this hits all 1st time installs --- xbmc/filesystem/SmbFile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3