From 2ce45048166cbb6de3f9161a38b3c0113616efee Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 31 Jul 2015 06:55:22 +0000 Subject: [PATCH] [NtGdi] - Fix locking. svn path=/trunk/; revision=68583 --- reactos/win32ss/gdi/ntgdi/line.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/line.c b/reactos/win32ss/gdi/ntgdi/line.c index 39a6728d2e1..fec41c6a059 100644 --- a/reactos/win32ss/gdi/ntgdi/line.c +++ b/reactos/win32ss/gdi/ntgdi/line.c @@ -60,13 +60,16 @@ GreMoveTo( HDC hdc, INT y, LPPOINT pptOut) { + BOOL Ret; PDC dc; if (!(dc = DC_LockDc(hdc))) { EngSetLastError(ERROR_INVALID_HANDLE); return FALSE; } - return IntGdiMoveToEx(dc, x, y, pptOut, TRUE); + Ret = IntGdiMoveToEx(dc, x, y, pptOut, TRUE); + DC_UnlockDc(dc); + return Ret; } // Should use Fx in pt