mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(CfiDecryptor): null argument check.
This commit is contained in:
parent
8a74eb1c77
commit
241cb95f8b
@ -61,6 +61,8 @@ namespace GameRes.Formats.Malie
|
||||
|
||||
public void DecryptBlock (long block_offset, byte[] data, int index)
|
||||
{
|
||||
if (null == data)
|
||||
throw new ArgumentNullException ("data");
|
||||
if (index < 0 || index + 0x10 > data.Length)
|
||||
throw new ArgumentOutOfRangeException ("index");
|
||||
int offset = (int)block_offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user