mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
shell32: Implement IShellImageData::GetSize().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d9d99834f6
commit
5222eca2d5
1 changed files with 14 additions and 2 deletions
|
@ -1046,10 +1046,22 @@ static HRESULT WINAPI ShellImageDate_SelectPage(IShellImageData *iface, ULONG pa
|
|||
static HRESULT WINAPI ShellImageData_GetSize(IShellImageData *iface, SIZE *size)
|
||||
{
|
||||
ShellImageData *This = impl_from_IShellImageData(iface);
|
||||
REAL cx, cy;
|
||||
HRESULT hr;
|
||||
|
||||
FIXME("%p, %p: stub\n", This, size);
|
||||
TRACE("%p, %p\n", This, size);
|
||||
|
||||
return E_NOTIMPL;
|
||||
if (!This->image)
|
||||
return E_FAIL;
|
||||
|
||||
hr = gpstatus_to_hresult(GdipGetImageDimension(This->image, &cx, &cy));
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
size->cx = cx;
|
||||
size->cy = cy;
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ShellImageData_GetRawDataFormat(IShellImageData *iface, GUID *format)
|
||||
|
|
Loading…
Reference in a new issue