mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -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 {
|
} else {
|
||||||
// Unrecognized?
|
// Unrecognized?
|
||||||
dir.v = nullptr;
|
dir.v = nullptr;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the icon directory union.
|
// Initialize the icon directory union.
|
||||||
|
Loading…
Reference in New Issue
Block a user