[XAM/XMP] Added missing nullptr check in: XMPGetStatus
This commit is contained in:
parent
2a4ca1a1b7
commit
bc6bce780a
|
@ -31,6 +31,9 @@ X_HRESULT XmpApp::XMPGetStatus(uint32_t state_ptr) {
|
|||
xe::threading::Sleep(std::chrono::milliseconds(1));
|
||||
}
|
||||
|
||||
if (!state_ptr) {
|
||||
return X_E_INVALIDARG;
|
||||
}
|
||||
const uint32_t state = static_cast<uint32_t>(
|
||||
kernel_state_->emulator()->audio_media_player()->GetState());
|
||||
|
||||
|
|
Loading…
Reference in New Issue