mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00
[librptexture] ICOPrivate::loadIconDirectory_Win3(): Missed an le32_to_cpu().
This commit is contained in:
parent
f157be4a97
commit
da852e5d50
@ -158,6 +158,7 @@ public:
|
|||||||
// All icon bitmap headers
|
// All icon bitmap headers
|
||||||
// These all have to be loaded in order to
|
// These all have to be loaded in order to
|
||||||
// determine which one is the "best" icon.
|
// determine which one is the "best" icon.
|
||||||
|
// NOTE: *Not* byteswapped.
|
||||||
rp::uvector<IconBitmapHeader_t> iconBitmapHeaders;
|
rp::uvector<IconBitmapHeader_t> iconBitmapHeaders;
|
||||||
|
|
||||||
// "Best" icon: Bitmap header
|
// "Best" icon: Bitmap header
|
||||||
@ -395,7 +396,7 @@ int ICOPrivate::loadIconDirectory_Win3(void)
|
|||||||
const IconBitmapHeader_t *const p = &iconBitmapHeaders[i];
|
const IconBitmapHeader_t *const p = &iconBitmapHeaders[i];
|
||||||
unsigned int width, height, bitcount;
|
unsigned int width, height, bitcount;
|
||||||
|
|
||||||
switch (p->size) {
|
switch (le32_to_cpu(p->size)) {
|
||||||
default:
|
default:
|
||||||
// Not supported...
|
// Not supported...
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user