Commit dcba743b authored by Joshua Davies's avatar Joshua Davies Committed by Alexandre Julliard

Windows is returning the length of the string, plus the CRLF

delimiters, whereas wineconsole is returning one less.
parent fac3698f
......@@ -372,7 +372,8 @@ static void WCEL_FindPrevInHist(WCEL_Context* ctx)
static void WCEL_Done(WCEL_Context* ctx)
{
WCHAR nl = '\n';
if (!WCEL_Grow(ctx, 1)) return;
if (!WCEL_Grow(ctx, 2)) return;
ctx->line[ctx->len++] = '\r';
ctx->line[ctx->len++] = '\n';
ctx->line[ctx->len] = 0;
WriteConsoleW(ctx->hConOut, &nl, 1, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment