Author: jimtabor
Date: Fri Jul 31 06:55:22 2015
New Revision: 68583
URL:
http://svn.reactos.org/svn/reactos?rev=68583&view=rev
Log:
[NtGdi]
- Fix locking.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/line.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/line.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/line.c?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/line.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/line.c [iso-8859-1] Fri Jul 31 06:55:22 2015
@@ -60,13 +60,16 @@
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