mirror of
https://github.com/mrkite/regs.git
synced 2024-09-07 11:54:25 +00:00
segment name fix
This commit is contained in:
parent
b53b097f7f
commit
c8b5738fb6
@ -101,8 +101,12 @@ bool OMF::loadSegments() {
|
||||
seg.lablen = 0xa;
|
||||
}
|
||||
}
|
||||
handle->seek(ofs + dispname + seg.lablen); // skip past load name
|
||||
// check if load name is valid
|
||||
handle->seek(ofs + dispname);
|
||||
seg.name = handle->read(seg.lablen);
|
||||
if (seg.name[0] == 0 || seg.name[0] == ' ') { // invalid name use segname
|
||||
seg.name = handle->read(seg.lablen);
|
||||
}
|
||||
seg.offset = ofs + dispdata;
|
||||
if (version == 1) { // convert to v2
|
||||
seg.bytecnt *= 512;
|
||||
|
Loading…
Reference in New Issue
Block a user