mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[CONSRV] Initialize rcFramebuffer in every case, otherwise it is left unintialized in case of e.g. console termination. (#428, #429)
Fixes CORE-14463. Debugged and and fix suggested by Timo Kreuzer. Signed-off-by: Michael Fritscher <reactos@mifritscher.de>
This commit is contained in:
parent
4ddb1bfd96
commit
602db40277
|
@ -129,6 +129,8 @@ GuiPaintGraphicsBuffer(PGRAPHICS_SCREEN_BUFFER Buffer,
|
|||
PCONSRV_CONSOLE Console = Buffer->Header.Console;
|
||||
// ASSERT(Console == GuiData->Console);
|
||||
|
||||
SetRectEmpty(&rcFramebuffer);
|
||||
|
||||
if (Buffer->BitMap == NULL) return;
|
||||
|
||||
if (!ConDrvValidateConsoleUnsafe((PCONSOLE)Console, CONSOLE_RUNNING, TRUE)) return;
|
||||
|
|
|
@ -358,6 +358,8 @@ GuiPaintTextModeBuffer(PTEXTMODE_SCREEN_BUFFER Buffer,
|
|||
HFONT OldFont, NewFont;
|
||||
BOOLEAN IsUnderline;
|
||||
|
||||
SetRectEmpty(&rcFramebuffer);
|
||||
|
||||
if (Buffer->Buffer == NULL) return;
|
||||
|
||||
if (!ConDrvValidateConsoleUnsafe((PCONSOLE)Console, CONSOLE_RUNNING, TRUE)) return;
|
||||
|
|
Loading…
Reference in a new issue