93d9c4c8
by chenzhengyong at 2025-11-04T22:56:33+01:00
windowscodecs: Fix off-by-one check in IcoDecoder_GetFrame.
The frame index should be strictly less than idCount.
Previously, an index equal to idCount was not rejected,
leading to an out-of-range access.
Adjusted the returned error code to match Windows behavior
and added corresponding test cases.
Signed-off-by: chenzhengyong <chenzhengyong@uniontech.com>