mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 15:36:24 +00:00
fixed uninitialized variable warning
svn path=/trunk/; revision=17152
This commit is contained in:
parent
a32178f6d9
commit
fb0db4efa6
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)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
PCHAR tmpString, String;
|
||||
PCHAR String;
|
||||
PBYTE Buffer;
|
||||
PCSRSS_CONSOLE Console;
|
||||
PCSRSS_SCREEN_BUFFER Buff;
|
||||
|
@ -1577,7 +1577,7 @@ CSR_API(CsrWriteConsoleOutputChar)
|
|||
(PWCHAR)Request->Data.WriteConsoleOutputCharRequest.String,
|
||||
Request->Data.WriteConsoleOutputCharRequest.Length,
|
||||
NULL, 0, NULL, NULL);
|
||||
tmpString = String = RtlAllocateHeap(GetProcessHeap(), 0, Length);
|
||||
String = RtlAllocateHeap(GetProcessHeap(), 0, Length);
|
||||
if (String)
|
||||
{
|
||||
WideCharToMultiByte(Console->CodePage, 0,
|
||||
|
@ -1635,7 +1635,7 @@ CSR_API(CsrWriteConsoleOutputChar)
|
|||
}
|
||||
if (Request->Data.WriteConsoleRequest.Unicode)
|
||||
{
|
||||
RtlFreeHeap(GetProcessHeap(), 0, tmpString);
|
||||
RtlFreeHeap(GetProcessHeap(), 0, String);
|
||||
}
|
||||
}
|
||||
if (NULL != Console)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue