Re: oleaut32: add PICTYPE_NONE and PICTYPE_UNINITIALIZED to IPicture::Render

2008-12-09 Thread Jeremy Drake
On Tue, 9 Dec 2008, Nikolay Sivov wrote:

 +  case PICTYPE_NONE:
 +  case PICTYPE_UNINITIALIZED:
 +  /* undocumented code */
 +  return 0x800A017C;

This code looks suspiciously like CTL_E_INVALIDPROPERTYVALUE (from
olectl.h) to me...




Re: oleaut32: add PICTYPE_NONE and PICTYPE_UNINITIALIZED to IPicture::Render

2008-12-09 Thread Nikolay Sivov
Jeremy Drake wrote:
 On Tue, 9 Dec 2008, Nikolay Sivov wrote:

   
 +  case PICTYPE_NONE:
 +  case PICTYPE_UNINITIALIZED:
 +  /* undocumented code */
 +  return 0x800A017C;
 

 This code looks suspiciously like CTL_E_INVALIDPROPERTYVALUE (from
 olectl.h) to me...

   
You're right. It returns CTL_E_INVALIDPROPERTYVALUE when at least one of 
dimensions is zero.
I'll update a patch.