Skip to content

Commit 882bae6

Browse files
committed
I think this is correct
1 parent 6e7ed93 commit 882bae6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Library/Ark/ProtectedFileStream.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ public override long Seek(long offset, SeekOrigin origin)
123123
pkg.Position = data_offset + _position - 1;
124124
key = (byte)((metadata[5] ^ pkg.ReadByte()) - _position + 1);
125125
}
126+
else if(_position == 0)
127+
{
128+
key = metadata[5];
129+
}
126130

127131
return _position;
128132
}

0 commit comments

Comments
 (0)