From 627bc5e39c3e718de09ddc0293997435b8c73413 Mon Sep 17 00:00:00 2001 From: Nicolas Cellier Date: Sun, 30 Dec 2018 20:01:19 +0100 Subject: [PATCH] Use the eventually true UNICODE imageNameT if -DUNICODE using `toUnicode` does not do the right thing: it promotes each UTF8 byte code to short... ... which can hardly work beyond ASCII. --- platforms/win32/vm/sqWin32Service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/win32/vm/sqWin32Service.c b/platforms/win32/vm/sqWin32Service.c index 1372f215cd..ac119077e6 100644 --- a/platforms/win32/vm/sqWin32Service.c +++ b/platforms/win32/vm/sqWin32Service.c @@ -101,7 +101,7 @@ TCHAR *printCommandLine(int printFor95) } /* add image name */ lstrcat(buffer, TEXT("\"")); - lstrcat(buffer, toUnicode(imageName)); + lstrcat(buffer, imageNameT); lstrcat(buffer, TEXT("\"\0")); return buffer;