[PATCH 3/7] uxtheme: Implement GetBufferedPaintDC()
Nikolay Sivov
nsivov at codeweavers.com
Wed Feb 8 16:42:36 CST 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/uxtheme/buffer.c | 9 ++++++---
dlls/uxtheme/tests/system.c | 1 -
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c
index 9024696ba6..f85761fda3 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -199,10 +199,13 @@ HRESULT WINAPI GetBufferedPaintBits(HPAINTBUFFER hBufferedPaint, RGBQUAD **ppbBu
/***********************************************************************
* GetBufferedPaintDC (UXTHEME.@)
*/
-HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER hBufferedPaint)
+HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER bufferhandle)
{
- FIXME("Stub (%p)\n", hBufferedPaint);
- return NULL;
+ struct paintbuffer *buffer = get_buffer_obj(bufferhandle);
+
+ TRACE("(%p)\n", buffer);
+
+ return buffer ? buffer->memorydc : NULL;
}
/***********************************************************************
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 66f696b62e..83e8cde2fd 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -614,7 +614,6 @@ todo_wine
/* access buffer attributes */
hdc = pGetBufferedPaintDC(buffer);
-todo_wine
ok(hdc == src, "Unexpected hdc, %p, buffered dc %p\n", hdc, src);
hdc = pGetBufferedPaintTargetDC(buffer);
--
2.11.0
More information about the wine-patches
mailing list