[CONDRV]: Quick fix for ASCII strings for ConDrvWriteConsoleOutputString.
[reactos.git] / win32ss / user / winsrv / consrv / condrv / text.c
index 98d5a85..96e3003 100644 (file)
@@ -966,6 +966,12 @@ ConDrvWriteConsoleOutputString(IN PCONSOLE Console,
         {
             Status = STATUS_NO_MEMORY;
         }
+
+        // FIXME: Quick fix: fix the CodeType and CodeSize since the
+        // ASCII string was converted into UNICODE.
+        // A proper fix needs to be written.
+        CodeType = CODE_UNICODE;
+        CodeSize = RTL_FIELD_SIZE(CODE_ELEMENT, UnicodeChar);
     }
     else
     {