mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Error handling in NativeStream
This commit is contained in:
parent
889342b63c
commit
fdb606257d
3 changed files with 17 additions and 11 deletions
|
|
@ -222,7 +222,7 @@ class NativeShare implements IShare {
|
|||
public function read($source) {
|
||||
$this->connect();
|
||||
$handle = $this->state->open($this->buildUrl($source), 'r');
|
||||
return NativeStream::wrap($this->state->getState(), $handle, 'r');
|
||||
return NativeStream::wrap($this->state, $handle, 'r');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -237,7 +237,7 @@ class NativeShare implements IShare {
|
|||
public function write($source) {
|
||||
$this->connect();
|
||||
$handle = $this->state->create($this->buildUrl($source));
|
||||
return NativeStream::wrap($this->state->getState(), $handle, 'w');
|
||||
return NativeStream::wrap($this->state, $handle, 'w');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue