Dmitry Timoshkov : gdiplus: Make GdipCreateFromHDC2 not fail in case of hDevice != NULL.

Alexandre Julliard julliard at winehq.org
Wed Jan 23 16:40:18 CST 2013


Module: wine
Branch: master
Commit: 9532de882f830b9f10c8621bba5a3642a2f9d647
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9532de882f830b9f10c8621bba5a3642a2f9d647

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jan 23 15:10:29 2013 +0800

gdiplus: Make GdipCreateFromHDC2 not fail in case of hDevice != NULL.

---

 dlls/gdiplus/graphics.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index e5678a7..e287683 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2274,10 +2274,8 @@ GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **gra
 
     TRACE("(%p, %p, %p)\n", hdc, hDevice, graphics);
 
-    if(hDevice != NULL) {
+    if(hDevice != NULL)
         FIXME("Don't know how to handle parameter hDevice\n");
-        return NotImplemented;
-    }
 
     if(hdc == NULL)
         return OutOfMemory;




More information about the wine-cvs mailing list