Merge remote-tracking branch

'origin/GP-0_d-millar_index_error_revisited' (Closes #4353)
This commit is contained in:
Ryan Kurtz
2022-06-22 00:37:37 -04:00
3 changed files with 4 additions and 5 deletions
@@ -286,7 +286,8 @@ public class DumpFileLoader extends AbstractLibrarySupportLoader {
DataUtilities.ClearDataMode.CHECK_FOR_SPACE);
}
catch (CodeUnitInsertionException e) {
Msg.error(this, "Could not create " + dd.getDataType().getName() + " at " + address);
Msg.error(this,
"Could not create " + dd.getDataType().getName() + " at " + address);
}
monitor.setProgress(count++);
monitor.checkCanceled();
@@ -43,8 +43,8 @@ public class CommentStreamA implements StructConverter {
private void parse() throws IOException {
reader.setPointerIndex(index);
commentLength = reader.readNextInt();
comment = reader.readNextAsciiString();
commentLength = (int) (reader.getPointerIndex() - index);
}
@@ -54,7 +54,6 @@ public class CommentStreamA implements StructConverter {
public DataType toDataType() throws DuplicateNameException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.add(DWORD, 4, "CommentLength", null);
struct.add(ASCII, commentLength, "Comment", null);
return struct;
@@ -43,8 +43,8 @@ public class CommentStreamW implements StructConverter {
private void parse() throws IOException {
reader.setPointerIndex(index);
commentLength = reader.readNextInt();
comment = reader.readNextUnicodeString();
commentLength = (int) (reader.getPointerIndex() - index);
}
@@ -54,7 +54,6 @@ public class CommentStreamW implements StructConverter {
public DataType toDataType() throws DuplicateNameException {
StructureDataType struct = new StructureDataType(NAME, 0);
struct.add(DWORD, 4, "CommentLength", null);
struct.add(UTF16, commentLength, "Comment", null);
return struct;