[*] moar regressions :(

This commit is contained in:
Reece Wilson 2023-09-18 06:09:29 +01:00
parent 09b044ab2e
commit 11ef18cbf0
2 changed files with 3 additions and 4 deletions

View File

@ -396,7 +396,7 @@ namespace Aurora::IO::FS
return false; return false;
} }
bOk &= pStream->Write(AuMemoryViewStreamRead { blob, uLength }); bOk = pStream->Write(AuMemoryViewStreamRead { blob, uLength });
pStream->WriteEoS(); pStream->WriteEoS();
pStream->Flush(); pStream->Flush();
@ -425,12 +425,11 @@ namespace Aurora::IO::FS
return false; return false;
} }
bOk &= pStream->Write(AuMemoryViewStreamRead { blob, uLength }); bOk = pStream->Write(AuMemoryViewStreamRead { blob, uLength });
pStream->WriteEoS(); pStream->WriteEoS();
pStream->Flush(); pStream->Flush();
bOk &= uLength == blob.length; bOk &= uLength == blob.length;
return bOk; return bOk;
} }

View File

@ -546,12 +546,12 @@ namespace Aurora::Process
} }
auto handle = h->second; auto handle = h->second;
#if defined(AURORA_IS_MODERNNT_DERIVED)
if (!pGetProcAddress) if (!pGetProcAddress)
{ {
return {}; return {};
} }
#if defined(AURORA_IS_MODERNNT_DERIVED)
auto ret = reinterpret_cast<AuMach>(pGetProcAddress(reinterpret_cast<HMODULE>(handle), symbol.c_str())); auto ret = reinterpret_cast<AuMach>(pGetProcAddress(reinterpret_cast<HMODULE>(handle), symbol.c_str()));
#else #else
auto ret = reinterpret_cast<AuMach>(dlsym(handle, symbol.c_str())); auto ret = reinterpret_cast<AuMach>(dlsym(handle, symbol.c_str()));