mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(CfiDecryptor): null argument check.
This commit is contained in:
@@ -61,6 +61,8 @@ namespace GameRes.Formats.Malie
|
|||||||
|
|
||||||
public void DecryptBlock (long block_offset, byte[] data, int index)
|
public void DecryptBlock (long block_offset, byte[] data, int index)
|
||||||
{
|
{
|
||||||
|
if (null == data)
|
||||||
|
throw new ArgumentNullException ("data");
|
||||||
if (index < 0 || index + 0x10 > data.Length)
|
if (index < 0 || index + 0x10 > data.Length)
|
||||||
throw new ArgumentOutOfRangeException ("index");
|
throw new ArgumentOutOfRangeException ("index");
|
||||||
int offset = (int)block_offset;
|
int offset = (int)block_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user