More object_ref'ing.

This commit is contained in:
Ben Vanik
2015-05-24 20:50:52 -07:00
parent 5cfb69434c
commit d746743d20
7 changed files with 24 additions and 40 deletions

View File

@@ -26,12 +26,11 @@ SHIM_CALL XamNotifyCreateListener_shim(PPCContext* ppc_state,
// r4=1 may indicate user process?
XNotifyListener* listener = new XNotifyListener(state);
auto listener = object_ref<XNotifyListener>(new XNotifyListener(state));
listener->Initialize(mask);
// Handle ref is incremented, so return that.
uint32_t handle = listener->handle();
listener->Release();
SHIM_SET_RETURN_64(handle);
}