This commit is contained in:
jfrijters 2009-03-26 14:20:58 +00:00
Родитель f3290fa061
Коммит e45e09bfea
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -81,7 +81,7 @@ namespace IKVM.Reflection.Emit.Writer
writer.Headers.OptionalHeader.SizeOfHeapCommit = 0x2000; writer.Headers.OptionalHeader.SizeOfHeapCommit = 0x2000;
break; break;
default: default:
throw new ArgumentOutOfRangeException("imageFileName"); throw new ArgumentOutOfRangeException("imageFileMachine");
} }
if (fileKind == PEFileKinds.Dll) if (fileKind == PEFileKinds.Dll)
{ {
@ -338,7 +338,7 @@ namespace IKVM.Reflection.Emit.Writer
} }
sum += fs.Length; sum += fs.Length;
// write the PE checksum, note that it is always of offset 0xD8 in the file // write the PE checksum, note that it is always at offset 0xD8 in the file
ByteBuffer bb = new ByteBuffer(4); ByteBuffer bb = new ByteBuffer(4);
bb.Write((int)sum); bb.Write((int)sum);
fs.Seek(0xD8, SeekOrigin.Begin); fs.Seek(0xD8, SeekOrigin.Begin);