Rcc: ensure enough space for the embedded
The two-pass feature depends on the QRC_DATA signature that needs to be stored in the array later overwritten by the embedded data. Task-number: QTBUG-42359 Change-Id: Ida1ccff40dda28f92a4267f86f48ee96d62bd214 Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>bb10
parent
ffcad3244f
commit
cf30a3d9b2
|
|
@ -889,6 +889,8 @@ bool RCCResourceLibrary::writeDataBlobs()
|
|||
if (m_format == C_Code)
|
||||
writeString("\n};\n\n");
|
||||
else if (m_format == Pass1) {
|
||||
if (offset < 8)
|
||||
offset = 8;
|
||||
writeString("\nstatic const unsigned char qt_resource_data[");
|
||||
writeByteArray(QByteArray::number(offset));
|
||||
writeString("] = { 'Q', 'R', 'C', '_', 'D', 'A', 'T', 'A' };\n\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue