Fixed bug in region loader that incorrectly tries to pad out non-multiple-of-4KB files.

This commit is contained in:
Justin Aquadro 2013-03-09 12:05:10 -05:00
parent afae126fb0
commit 51511529ba

View file

@ -127,6 +127,7 @@ namespace Substrate.Core
if ((file.Length & 0xfff) != 0) {
/* the file size is not a multiple of 4KB, grow it */
file.Seek(0, SeekOrigin.End);
for (int i = 0; i < (file.Length & 0xfff); ++i) {
file.WriteByte(0);
}