mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-15 05:00:10 +01:00
Special nullptr optParam->cbFunc case fix
This commit is contained in:
parent
50bf528f3f
commit
b736691bde
|
|
@ -548,9 +548,17 @@ namespace np
|
|||
const u32 req_id = get_req_id(optParam ? optParam->appReqId : ctx->default_match2_optparam.appReqId);
|
||||
|
||||
ret.ctx_id = ctx_id;
|
||||
ret.cb = optParam ? optParam->cbFunc : ctx->default_match2_optparam.cbFunc;
|
||||
ret.cb_arg = optParam ? optParam->cbFuncArg : ctx->default_match2_optparam.cbFuncArg;
|
||||
|
||||
if (optParam && optParam->cbFunc)
|
||||
{
|
||||
ret.cb = optParam->cbFunc;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret.cb = ctx->default_match2_optparam.cbFunc;
|
||||
}
|
||||
|
||||
nph_log.warning("Callback used is 0x%x", ret.cb);
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue