mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Unlock console on alternate return paths. Fixes bug 734.
svn path=/trunk/; revision=17742
This commit is contained in:
@@ -1500,6 +1500,10 @@ CSR_API(CsrSetCursor)
|
||||
NewCursorY < 0 || NewCursorY >= Buff->MaxY)
|
||||
{
|
||||
ConioUnlockScreenBuffer(Buff);
|
||||
if (NULL != Console)
|
||||
{
|
||||
ConioUnlockConsole(Console);
|
||||
}
|
||||
return Request->Status = STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
ConioPhysicalToLogical(Buff, Buff->CurrentX, Buff->CurrentY, &OldCursorX, &OldCursorY);
|
||||
@@ -1510,6 +1514,10 @@ CSR_API(CsrSetCursor)
|
||||
if (! ConioSetScreenInfo(Console, Buff, OldCursorX, OldCursorY))
|
||||
{
|
||||
ConioUnlockScreenBuffer(Buff);
|
||||
if (NULL != Console)
|
||||
{
|
||||
ConioUnlockConsole(Console);
|
||||
}
|
||||
return Request->Status = STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user