[GDI] GetObject patch (for null buffer functionality)

Michael Stefaniuc mstefani at redhat.de
Fri Jun 6 10:51:47 CDT 2003

On Fri, Jun 06, 2003 at 10:39:43AM -0500, Kelly Leahy wrote:
> I just found a problem with this patch.  Let me send another one...
Please send the patch as unified diff (diff -u). See
http://www.winehq.com/Docs/wine-devel/patches.shtml for details.


> I'll have it this afternoon.  It shouldn't be a big deal (it won't be worse than the code was before) but let me fix it anyway.
> Kelly
>   ----- Original Message ----- 
>   From: Kelly Leahy 
>   To: wine-patches at winehq.com 
>   Sent: Friday, June 06, 2003 10:22 AM
>   Subject: [GDI] GetObject patch (for null buffer functionality)
>   Kelly Leahy
>   kellyleahy at swbell.net
>   Changelog-
>     - fixes problems with GDI GetObject function not working properly when a NULL buffer or 0 count is used.
>     - note - no attempt was made to fix this problem under 16-bit windows functions (GetObject16).
>   Description:
>     The GDI GetObject function should return the number of bytes required for the buffer, when a NULL buffer pointer is passed to the function.  However, the implementation in CVS did not provide this functionality.  I've added two function pointers to the gdi_obj_funcs structure that allow for this functionality.  The pointers are pGetObjectSizeA and pGetObjectSizeW, and for all object types except FONT, they are implemented by the same function.  On FONT, the structure differs depending on whether the LOGFONTA or LOGFONTW structure is required (depends on which function is called - GetObjectA or GetObjectW).  For bitmaps, the function must determine which structure is most appropriate (BITMAP or DIBSECTION) and return the size of that structure - it does so now.
>   Patch is attached.

Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20030606/b4a5508b/attachment.pgp

More information about the wine-devel mailing list