mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
fs: fix null check in AesXtsStorageExternal
This commit is contained in:
parent
175a34da43
commit
dfba595cdc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue