You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against ee17400c05d88fa29d0b895fa01902adfc91ba7f.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From a9cd52667f49a57900a08591cd66b40747a12db0 Mon Sep 17 00:00:00 2001
|
||||
From 1e6c40cf8a92d7873f1689d64936cd4dfd32f246 Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Timoshkov <dmitry@baikal.ru>
|
||||
Date: Thu, 21 Apr 2016 14:40:58 +0800
|
||||
Subject: [PATCH] oleaut32: OleLoadPicture should create a DIB section for a
|
||||
@@ -12,7 +12,7 @@ NULL, otherwise it crashes).
|
||||
2 files changed, 27 insertions(+), 40 deletions(-)
|
||||
|
||||
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
|
||||
index 45baa74a439..22a34d6e380 100644
|
||||
index 8df0c22b6cf..b41668a4aeb 100644
|
||||
--- a/dlls/oleaut32/olepicture.c
|
||||
+++ b/dlls/oleaut32/olepicture.c
|
||||
@@ -983,23 +983,16 @@ static HRESULT OLEPictureImpl_LoadDIB(OLEPictureImpl *This, BYTE *xbuf, ULONG xr
|
||||
@@ -62,9 +62,9 @@ index 45baa74a439..22a34d6e380 100644
|
||||
stride = 4 * width;
|
||||
buffersize = stride * height;
|
||||
|
||||
- bits = HeapAlloc(GetProcessHeap(), 0, buffersize);
|
||||
- bits = malloc(buffersize);
|
||||
- if (!bits)
|
||||
+ mask = HeapAlloc(GetProcessHeap(), 0, buffersize);
|
||||
+ mask = malloc(buffersize);
|
||||
+ if (!mask)
|
||||
{
|
||||
hr = E_OUTOFMEMORY;
|
||||
@@ -143,13 +143,13 @@ index 45baa74a439..22a34d6e380 100644
|
||||
- ReleaseDC(0, hdcref);
|
||||
-
|
||||
end:
|
||||
- HeapFree(GetProcessHeap(), 0, bits);
|
||||
+ HeapFree(GetProcessHeap(), 0, mask);
|
||||
- free(bits);
|
||||
+ free(mask);
|
||||
IWICBitmapSource_Release(real_source);
|
||||
return hr;
|
||||
}
|
||||
diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c
|
||||
index 7b45b690935..fa7e8009cbd 100644
|
||||
index 02d53404e32..98d081b745e 100644
|
||||
--- a/dlls/oleaut32/tests/olepicture.c
|
||||
+++ b/dlls/oleaut32/tests/olepicture.c
|
||||
@@ -239,7 +239,7 @@ test_pic_with_stream(LPSTREAM stream, unsigned int imgsize)
|
||||
|
Reference in New Issue
Block a user