Alex VillaciĀs Lasso escreveu:
Alexandre Julliard wrote:
This seems a bit overkill just to retrieve the bitmap size. Couldn't you simply do a GetObject on the bitmap?
You are right. I did a copy&paste from the SerializeIcon code. What do you think about this patch?
Changelog:
- Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case
...
if(GetObjectA(infoIcon.hbmColor, sizeof(bm), &bm) != sizeof(bm)) {
Maybe GetObjectW is more consistent (get rid w->A calls)?