[PATCH 4/7] uxtheme: Implement GetBufferedPaintTargetDC()
Nikolay Sivov
nsivov at codeweavers.com
Wed Feb 8 16:42:37 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 f85761fda3..e2c5756f83 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -211,10 +211,13 @@ HDC WINAPI GetBufferedPaintDC(HPAINTBUFFER bufferhandle)
/***********************************************************************
* GetBufferedPaintTargetDC (UXTHEME.@)
*/
-HDC WINAPI GetBufferedPaintTargetDC(HPAINTBUFFER hBufferedPaint)
+HDC WINAPI GetBufferedPaintTargetDC(HPAINTBUFFER bufferhandle)
{
- FIXME("Stub (%p)\n", hBufferedPaint);
- return NULL;
+ struct paintbuffer *buffer = get_buffer_obj(bufferhandle);
+
+ TRACE("(%p)\n", buffer);
+
+ return buffer ? buffer->targetdc : NULL;
}
/***********************************************************************
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 83e8cde2fd..44aebb8693 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -617,7 +617,6 @@ todo_wine
ok(hdc == src, "Unexpected hdc, %p, buffered dc %p\n", hdc, src);
hdc = pGetBufferedPaintTargetDC(buffer);
-todo_wine
ok(hdc == target, "Unexpected target hdc %p, original %p\n", hdc, target);
hr = pGetBufferedPaintTargetRect(buffer, NULL);
--
2.11.0
More information about the wine-patches
mailing list