oleaut32: Return success from GetSizeMax if not dirty.

This commit is contained in:
Daniel Lehman 2024-03-13 21:23:02 -07:00 committed by Alexandre Julliard
parent 148db6a6c5
commit c1f5f98f79
2 changed files with 2 additions and 2 deletions

View file

@ -1882,7 +1882,8 @@ static HRESULT WINAPI OLEPictureImpl_GetSizeMax(IPersistStream *iface, ULARGE_IN
FIXME("(%p), PICTYPE_BITMAP (format UNKNOWN, using BMP?) not implemented!\n",This);
break;
}
}
} else hr = S_OK;
break;
case PICTYPE_METAFILE:
FIXME("(%p), PICTYPE_METAFILE not implemented!\n",This);

View file

@ -1262,7 +1262,6 @@ static void test_load_save_bmp(void)
maxsize.QuadPart = 0;
hr = IPersistStream_GetSizeMax(src_stream, &maxsize);
todo_wine
ok(hr == S_OK, "GetSizeMax error %#lx\n", hr);
ok(maxsize.QuadPart == 74, "expected 74, got %s\n", wine_dbgstr_longlong(maxsize.QuadPart));