Re: OLEPICTURE: Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case
March 29, 2005
2:38 p.m.
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)?
7668
Age (days ago)
7668
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcelo Duarte