From 22bfe27fb0d1e46bea29b36f3c56f8a555458a00 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 11 Aug 2009 17:19:32 -0500 Subject: [PATCH] windowscodecs: Implement Commit for BMP encoder. --- dlls/windowscodecs/bmpencode.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/windowscodecs/bmpencode.c b/dlls/windowscodecs/bmpencode.c index 869a60e101d..963de6e6709 100644 --- a/dlls/windowscodecs/bmpencode.c +++ b/dlls/windowscodecs/bmpencode.c @@ -483,8 +483,13 @@ static HRESULT WINAPI BmpEncoder_CreateNewFrame(IWICBitmapEncoder *iface, static HRESULT WINAPI BmpEncoder_Commit(IWICBitmapEncoder *iface) { - FIXME("(%p): stub\n", iface); - return E_NOTIMPL; + BmpEncoder *This = (BmpEncoder*)iface; + BmpFrameEncode *frame = (BmpFrameEncode*)This->frame; + TRACE("(%p)\n", iface); + + if (!frame || !frame->committed) return WINCODEC_ERR_WRONGSTATE; + + return S_OK; } static HRESULT WINAPI BmpEncoder_GetMetadataQueryWriter(IWICBitmapEncoder *iface,