[XAM/XMP] Added missing nullptr check in: XMPGetStatus

This commit is contained in:
Gliniak 2025-05-03 21:29:37 +02:00
parent 2a4ca1a1b7
commit bc6bce780a
1 changed files with 3 additions and 0 deletions

View File

@ -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());