(CfiDecryptor): null argument check.

This commit is contained in:
morkt 2017-06-08 08:27:01 +04:00
parent 8a74eb1c77
commit 241cb95f8b

View File

@ -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;