gdiplus: Implement GdipGetPropertyCount.

oldstable
Dmitry Timoshkov 2012-06-25 20:30:43 +09:00 committed by Alexandre Julliard
parent b72d236ca8
commit b9132b6815
1 changed files with 9 additions and 5 deletions

View File

@ -2403,16 +2403,20 @@ GpStatus WINGDIPAPI GdipGetAllPropertyItems(GpImage *image, UINT size,
return InvalidParameter;
}
GpStatus WINGDIPAPI GdipGetPropertyCount(GpImage *image, UINT* num)
GpStatus WINGDIPAPI GdipGetPropertyCount(GpImage *image, UINT *num)
{
static int calls;
TRACE("(%p, %p)\n", image, num);
if(!(calls++))
FIXME("not implemented\n");
if (!image || !num) return InvalidParameter;
*num = 0;
if (image->type == ImageTypeBitmap)
{
if (((GpBitmap *)image)->metadata_reader)
IWICMetadataReader_GetCount(((GpBitmap *)image)->metadata_reader, num);
}
return Ok;
}