OLEPICTURE: Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case

Marcelo Duarte marcelotduarte at gmail.com
Tue Mar 29 14:38:09 CST 2005


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)?



More information about the wine-devel mailing list