<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I just found a problem with this patch.&nbsp; Let 
me send another one...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'll have it this afternoon.&nbsp; It shouldn't be 
a big deal (it won't be worse than the code was before) but let me fix it 
anyway.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kelly</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=kellyleahy@swbell.net href="mailto:kellyleahy@swbell.net">Kelly 
  Leahy</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=wine-patches@winehq.com 
  href="mailto:wine-patches@winehq.com">wine-patches@winehq.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 06, 2003 10:22 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [GDI] GetObject patch (for null 
  buffer functionality)</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>
  <DIV><FONT face=Arial size=2>Kelly Leahy</FONT></DIV>
  <DIV><FONT face=Arial size=2><A 
  href="mailto:kellyleahy@swbell.net">kellyleahy@swbell.net</A></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>Changelog-</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp; - fixes problems with GDI GetObject 
  function not working properly when a NULL buffer or 0 count is 
  used.</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp; - note - no attempt was made to fix this 
  problem under 16-bit windows functions (GetObject16).</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Description:</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp; The GDI GetObject function should return 
  the number of bytes required for the buffer, when a NULL buffer pointer is 
  passed to the function.&nbsp; However, the implementation in CVS did not 
  provide this functionality.&nbsp; I've added two function pointers to the 
  gdi_obj_funcs structure that allow for this functionality.&nbsp; The pointers 
  are pGetObjectSizeA and pGetObjectSizeW, and for all object types except FONT, 
  they are implemented by the same function.&nbsp; On FONT, the structure 
  differs depending on whether the LOGFONTA or LOGFONTW structure is required 
  (depends on which function is called - GetObjectA or GetObjectW).&nbsp; 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.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Patch is attached.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>