Fix smbclient_state_init argument order

This commit is contained in:
Robin McCorkell 2014-07-14 13:42:56 +01:00
commit 31b1cfdaf6
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ class NativeServer extends Server {
list($workgroup, $user) = explode($user, '/'); list($workgroup, $user) = explode($user, '/');
} }
$this->state = smbclient_state_new(); $this->state = smbclient_state_new();
$result = smbclient_state_init($this->state, $workgroup, $this->getPassword(), $user); $result = smbclient_state_init($this->state, $workgroup, $user, $this->getPassword());
if (!$result) { if (!$result) {
throw new ConnectionError(); throw new ConnectionError();
} }

View file

@ -65,7 +65,7 @@ class NativeShare implements IShare {
list($workgroup, $user) = explode($user, '/'); list($workgroup, $user) = explode($user, '/');
} }
$this->state = smbclient_state_new(); $this->state = smbclient_state_new();
$result = smbclient_state_init($this->state, $workgroup, $this->server->getPassword(), $user); $result = smbclient_state_init($this->state, $workgroup, $user, $this->server->getPassword());
if (!$result) { if (!$result) {
throw new ConnectionError(); throw new ConnectionError();
} }