projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fe6996
)
[NtGdi]
author
James Tabor
<james.tabor@reactos.org>
Fri, 31 Jul 2015 06:55:22 +0000
(06:55 +0000)
committer
James Tabor
<james.tabor@reactos.org>
Fri, 31 Jul 2015 06:55:22 +0000
(06:55 +0000)
- Fix locking.
svn path=/trunk/; revision=68583
reactos/win32ss/gdi/ntgdi/line.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/gdi/ntgdi/line.c
b/reactos/win32ss/gdi/ntgdi/line.c
index
39a6728
..
fec41c6
100644
(file)
--- 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