mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
use the correct pointer to free the string. Thx to Hartmut for spotting this bug
svn path=/trunk/; revision=17190
This commit is contained in:
parent
12de4ac145
commit
ebe277b796
1 changed files with 3 additions and 3 deletions
|
@ -1545,7 +1545,7 @@ ConioComputeUpdateRect(PCSRSS_SCREEN_BUFFER Buff, RECT *UpdateRect, COORD *Start
|
||||||
CSR_API(CsrWriteConsoleOutputChar)
|
CSR_API(CsrWriteConsoleOutputChar)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PCHAR String;
|
PCHAR String, tmpString = NULL;
|
||||||
PBYTE Buffer;
|
PBYTE Buffer;
|
||||||
PCSRSS_CONSOLE Console;
|
PCSRSS_CONSOLE Console;
|
||||||
PCSRSS_SCREEN_BUFFER Buff;
|
PCSRSS_SCREEN_BUFFER Buff;
|
||||||
|
@ -1577,7 +1577,7 @@ CSR_API(CsrWriteConsoleOutputChar)
|
||||||
(PWCHAR)Request->Data.WriteConsoleOutputCharRequest.String,
|
(PWCHAR)Request->Data.WriteConsoleOutputCharRequest.String,
|
||||||
Request->Data.WriteConsoleOutputCharRequest.Length,
|
Request->Data.WriteConsoleOutputCharRequest.Length,
|
||||||
NULL, 0, NULL, NULL);
|
NULL, 0, NULL, NULL);
|
||||||
String = RtlAllocateHeap(GetProcessHeap(), 0, Length);
|
tmpString = String = RtlAllocateHeap(GetProcessHeap(), 0, Length);
|
||||||
if (String)
|
if (String)
|
||||||
{
|
{
|
||||||
WideCharToMultiByte(Console->CodePage, 0,
|
WideCharToMultiByte(Console->CodePage, 0,
|
||||||
|
@ -1635,7 +1635,7 @@ CSR_API(CsrWriteConsoleOutputChar)
|
||||||
}
|
}
|
||||||
if (Request->Data.WriteConsoleRequest.Unicode)
|
if (Request->Data.WriteConsoleRequest.Unicode)
|
||||||
{
|
{
|
||||||
RtlFreeHeap(GetProcessHeap(), 0, String);
|
RtlFreeHeap(GetProcessHeap(), 0, tmpString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (NULL != Console)
|
if (NULL != Console)
|
||||||
|
|
Loading…
Reference in a new issue