ICOPrivate::ICOPrivate(): Return if the type is unrecognized.

Otherwise, dir.res will be allocated, with unpredictable results.
This commit is contained in:
David Korth 2025-06-09 18:30:01 -04:00
parent acdf3544e1
commit 8f762b7c78

View File

@ -273,6 +273,7 @@ ICOPrivate::ICOPrivate(ICO *q, const IResourceReaderPtr &resReader, uint16_t typ
} else {
// Unrecognized?
dir.v = nullptr;
return;
}
// Initialize the icon directory union.