mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a potential null pointer.
This commit is contained in:
parent
49bd553238
commit
1b1a8cef02
1 changed files with 6 additions and 0 deletions
|
@ -610,6 +610,12 @@ void __KernelMsgPipeEndCallback(SceUID threadID, SceUID prevCallbackId)
|
|||
SceUID uid = __KernelGetWaitID(threadID, WAITTYPE_MSGPIPE, error);
|
||||
MsgPipe *ko = uid == 0 ? NULL : kernelObjects.Get<MsgPipe>(uid, error);
|
||||
|
||||
if (ko == NULL)
|
||||
{
|
||||
ERROR_LOG_REPORT(SCEKERNEL, "__KernelMsgPipeEndCallback: Invalid object");
|
||||
return;
|
||||
}
|
||||
|
||||
switch (waitValue)
|
||||
{
|
||||
case MSGPIPE_WAIT_VALUE_SEND:
|
||||
|
|
Loading…
Add table
Reference in a new issue