Skip to content

Commit

Permalink
fixed, failure to broswe for smb shares. this hits all 1st time installs
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Apr 21, 2012
1 parent a213d76 commit f52dd9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/filesystem/SmbFile.cpp
Expand Up @@ -61,7 +61,6 @@ CSMB::CSMB()
m_IdleTimeout = 0;
#endif
m_context = NULL;
smbc_init(xb_smbc_auth, 0);
}

CSMB::~CSMB()
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f52dd9a

Please sign in to comment.