From 589bd6abe0daf93d6ed1236be9a7f771b93f44d7 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 1 May 2014 10:51:19 +0000 Subject: [PATCH] [WIN32K] Fix possible NULL pointer dereference in GreSetStretchBltMode. CID 1206825 svn path=/trunk/; revision=63093 --- reactos/win32ss/gdi/ntgdi/dcutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/dcutil.c b/reactos/win32ss/gdi/ntgdi/dcutil.c index e4a6f40bb19..695d7e29a78 100644 --- a/reactos/win32ss/gdi/ntgdi/dcutil.c +++ b/reactos/win32ss/gdi/ntgdi/dcutil.c @@ -236,8 +236,8 @@ GreSetStretchBltMode(HDC hDC, int iStretchMode) if ((iStretchMode <= 0) || (iStretchMode > MAXSTRETCHBLTMODE)) iStretchMode = WHITEONBLACK; pdcattr->jStretchBltMode = iStretchMode; + DC_UnlockDc(pdc); } - DC_UnlockDc(pdc); return oSMode; }