Core/DataStores: Fixed Meta->Types/TypesString mixup causing crashes when trying to send hotfix for nonlocalized string

Closes #18882 (for real this time)
This commit is contained in:
Shauren
2017-02-26 15:00:46 +01:00
parent 047c6f072b
commit bc2380e105
3 changed files with 21 additions and 10 deletions

View File

@@ -16,6 +16,7 @@
*/
#include "DB2Meta.h"
#include "Errors.h"
DB2Meta::DB2Meta(int32 indexField, uint32 fieldCount, uint32 layoutHash, char const* types, uint8 const* arraySizes)
: IndexField(indexField), FieldCount(fieldCount), LayoutHash(layoutHash), Types(types), ArraySizes(arraySizes)
@@ -52,9 +53,11 @@ uint32 DB2Meta::GetRecordSize() const
size += 4;
break;
case FT_STRING:
case FT_STRING_NOT_LOCALIZED:
size += sizeof(char*);
break;
default:
ASSERT(false, "Unsupported column type specified %c", Types[i]);
break;
}
}
}