mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
ICOPrivate::ICOPrivate(): Return if the type is unrecognized.
Otherwise, dir.res will be allocated, with unpredictable results.
This commit is contained in:
parent
acdf3544e1
commit
8f762b7c78
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user