DiskProbe: Check we actually have a buffer before computing the offset.
Fixes #17709.
This commit is contained in:
parent
925b83a85a
commit
acdd772db0
@ -1062,8 +1062,10 @@ DataEditor::GetViewBuffer(const uint8 **_buffer)
|
||||
debugger("DataEditor: view not locked");
|
||||
|
||||
status_t status = UpdateIfNeeded();
|
||||
if (status < B_OK)
|
||||
if (status != B_OK)
|
||||
return status;
|
||||
if (fView == NULL)
|
||||
return B_NO_INIT;
|
||||
|
||||
*_buffer = fView + fViewOffset - fRealViewOffset;
|
||||
return B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user