mirror of https://gitlab.com/basile.b/dexed.git
setup, remove useless null sentinel
This commit is contained in:
parent
459f5add40
commit
cc7aad9bd5
|
@ -354,7 +354,6 @@ void postInstall()
|
||||||
{
|
{
|
||||||
version(Windows)
|
version(Windows)
|
||||||
{
|
{
|
||||||
|
|
||||||
import
|
import
|
||||||
core.sys.windows.basetyps, core.sys.windows.com,
|
core.sys.windows.basetyps, core.sys.windows.com,
|
||||||
core.sys.windows.objbase, core.sys.windows.objidl,
|
core.sys.windows.objbase, core.sys.windows.objidl,
|
||||||
|
@ -373,11 +372,10 @@ void postInstall()
|
||||||
char[MAX_PATH] _desktopFolder;
|
char[MAX_PATH] _desktopFolder;
|
||||||
SHGetFolderPathA(null, CSIDL_DESKTOPDIRECTORY, null, 0, _desktopFolder.ptr);
|
SHGetFolderPathA(null, CSIDL_DESKTOPDIRECTORY, null, 0, _desktopFolder.ptr);
|
||||||
char[] desktopFolder = _desktopFolder.ptr.fromStringz();
|
char[] desktopFolder = _desktopFolder.ptr.fromStringz();
|
||||||
string target = exePath ~ "coedit.exe\0";
|
string target = exePath ~ "coedit.exe";
|
||||||
string wdir = exePath ~ "\0";
|
string wdir = exePath ~ "";
|
||||||
const(wchar)* linkPath = buildNormalizedPath(desktopFolder, "Coedit.lnk").toUTF16z();
|
const(wchar)* linkPath = buildNormalizedPath(desktopFolder, "Coedit.lnk").toUTF16z();
|
||||||
|
|
||||||
|
|
||||||
CoInitialize(null);
|
CoInitialize(null);
|
||||||
IShellLinkA shellLink;
|
IShellLinkA shellLink;
|
||||||
IPersistFile linkFile;
|
IPersistFile linkFile;
|
||||||
|
|
Loading…
Reference in New Issue