From cc7aad9bd508e870311bf11e537b70fdc7320b8d Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 22 Nov 2016 10:05:48 +0100 Subject: [PATCH] setup, remove useless null sentinel --- cesetup/cesetup.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cesetup/cesetup.d b/cesetup/cesetup.d index 2b7c331a..6362a59a 100644 --- a/cesetup/cesetup.d +++ b/cesetup/cesetup.d @@ -354,7 +354,6 @@ void postInstall() { version(Windows) { - import core.sys.windows.basetyps, core.sys.windows.com, core.sys.windows.objbase, core.sys.windows.objidl, @@ -373,11 +372,10 @@ void postInstall() char[MAX_PATH] _desktopFolder; SHGetFolderPathA(null, CSIDL_DESKTOPDIRECTORY, null, 0, _desktopFolder.ptr); char[] desktopFolder = _desktopFolder.ptr.fromStringz(); - string target = exePath ~ "coedit.exe\0"; - string wdir = exePath ~ "\0"; + string target = exePath ~ "coedit.exe"; + string wdir = exePath ~ ""; const(wchar)* linkPath = buildNormalizedPath(desktopFolder, "Coedit.lnk").toUTF16z(); - CoInitialize(null); IShellLinkA shellLink; IPersistFile linkFile;