Wassimulator / CactusViewer

A small single file image viewer written in C/C++.
BSD 2-Clause "Simplified" License
203 stars 15 forks source link

Opening empty BMP displays wrong error message #20

Open Benjipede opened 1 year ago

Benjipede commented 1 year ago

This is a small one, but when I open an empty bitmap, which has been generated through the right-click menu, the viewer says: Error: Component not found: file '.bmp' not supported. I would imagine just being told that the image is empty.

I am using Windows 10.

I can see that Windows' Photos app doesn't do much better, so maybe this is a shortcoming of the Windows decoder that you are depending on or Windows really generates an invalid BMP.