fixed uninitialized variable warning
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 7 Aug 2005 09:55:08 +0000 (09:55 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 7 Aug 2005 09:55:08 +0000 (09:55 +0000)
svn path=/trunk/; revision=17152

reactos/subsys/csrss/win32csr/conio.c

index d23efa2..1ef05d3 100644 (file)
@@ -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)