This commit is contained in:
Reece Wilson 2024-02-26 00:28:33 +00:00
parent 2731183a1a
commit 7dbf564a27

View File

@ -111,11 +111,7 @@ namespace Aurora::IO
if (callback)
{
auto pRet = AuMakeShared<IAsyncFinishedSubscriberFunctional>();
if (!pRet)
{
SysPushErrorMemory();
return false;
}
SysCheckNotNullMemory(pRet, false);
pRet->OnAsyncFileOpFinishedFunctional = callback.Value();
pTransaction->SetCallback(pRet);
@ -140,11 +136,7 @@ namespace Aurora::IO
if (callback)
{
auto pRet = AuMakeShared<IAsyncFinishedSubscriberFunctional>();
if (!pRet)
{
SysPushErrorMemory();
return false;
}
SysCheckNotNullMemory(pRet, false);
pRet->OnAsyncFileOpFinishedFunctional = callback.Value();
pTransaction->SetCallback(pRet);