mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-01-19 01:34:10 +01:00
fs: fix null check in AesXtsStorageExternal
This commit is contained in:
parent
175a34da43
commit
dfba595cdc
@ -111,7 +111,7 @@ namespace ams::fssystem {
|
|||||||
R_UNLESS(buffer != nullptr, fs::ResultNullptrArgument());
|
R_UNLESS(buffer != nullptr, fs::ResultNullptrArgument());
|
||||||
|
|
||||||
/* Ensure we can encrypt. */
|
/* Ensure we can encrypt. */
|
||||||
R_UNLESS(m_decrypt_function != nullptr, fs::ResultNullptrArgument());
|
R_UNLESS(m_encrypt_function != nullptr, fs::ResultNullptrArgument());
|
||||||
|
|
||||||
/* We can only write at block aligned offsets. */
|
/* We can only write at block aligned offsets. */
|
||||||
R_UNLESS(util::IsAligned(offset, AesBlockSize), fs::ResultInvalidArgument());
|
R_UNLESS(util::IsAligned(offset, AesBlockSize), fs::ResultInvalidArgument());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user