From 14d81d9eb9cd78206e950446acd06cfe0c96ae4d Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 19 Apr 2017 13:30:43 +0300 Subject: [PATCH] uxtheme: Create compatible bitmap using target hdc. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/uxtheme/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c index ce1fc9f6026..17bdf3dbd62 100644 --- a/dlls/uxtheme/buffer.c +++ b/dlls/uxtheme/buffer.c @@ -105,7 +105,7 @@ HPAINTBUFFER WINAPI BeginBufferedPaint(HDC targetdc, const RECT *rect, switch (format) { case BPBF_COMPATIBLEBITMAP: - hbm = CreateCompatibleBitmap(buffer->memorydc, rect->right - rect->left, rect->bottom - rect->top); + hbm = CreateCompatibleBitmap(targetdc, rect->right - rect->left, rect->bottom - rect->top); buffer->bits = NULL; break; case BPBF_DIB: