Nikolay Sivov : wincodecs: Use valid bitmap cache option.
Module: wine Branch: master Commit: de6649ede03eed385207564e8f9ac907852c4fbd URL: http://source.winehq.org/git/wine.git/?a=commit;h=de6649ede03eed385207564e8f... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Apr 1 22:54:25 2015 +0300 wincodecs: Use valid bitmap cache option. --- dlls/windowscodecs/imgfactory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/imgfactory.c b/dlls/windowscodecs/imgfactory.c index 42b4e59..f2455fc 100644 --- a/dlls/windowscodecs/imgfactory.c +++ b/dlls/windowscodecs/imgfactory.c @@ -712,7 +712,7 @@ static HRESULT WINAPI ComponentFactory_CreateBitmapFromHBITMAP(IWICComponentFact return E_INVALIDARG; } - hr = BitmapImpl_Create(bm.bmWidth, bm.bmHeight, bm.bmWidthBytes, 0, NULL, &format, option, bitmap); + hr = BitmapImpl_Create(bm.bmWidth, bm.bmHeight, bm.bmWidthBytes, 0, NULL, &format, WICBitmapCacheOnLoad, bitmap); if (hr != S_OK) return hr; hr = IWICBitmap_Lock(*bitmap, NULL, WICBitmapLockWrite, &lock);
participants (1)
-
Alexandre Julliard