setup, remove useless null sentinel

This commit is contained in:
Basile Burg 2016-11-22 10:05:48 +01:00
parent 459f5add40
commit cc7aad9bd5
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 2 additions and 4 deletions

View File

@ -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;