wscript: Zero terminate the host version string to avoid random garbage.

String is used only once and passed to SysAllocString() which assumes a
zero terminated string.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-11-03 23:34:34 +01:00 committed by Alexandre Julliard
parent 4e3c4d6f1d
commit 7f955f289a
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wscript);
#define BUILDVERSION 16535
static const WCHAR wshVersionW[] = {'5','.','8'};
static const WCHAR wshVersionW[] = L"5.8";
VARIANT_BOOL wshInteractive =
#ifndef CSCRIPT_BUILD