1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-16 20:54:59 +03:00

Mayaqua: remove all references to binaries with "_x64" and "_ia64" suffix

See the previous commit's message for details.
This commit is contained in:
Davide Beatrici
2020-07-27 07:25:00 +02:00
parent a3eb115b0a
commit 6a472d827a
4 changed files with 8 additions and 55 deletions

View File

@ -2098,7 +2098,6 @@ bool MsExecDriverInstaller(char *arg)
HANDLE h;
UINT retcode;
SHELLEXECUTEINFOW info;
wchar_t *src_exe;
wchar_t *arg_w;
// Validate arguments
if (arg == NULL)
@ -2110,20 +2109,9 @@ bool MsExecDriverInstaller(char *arg)
UniFormat(hamcore_src, sizeof(hamcore_src), L"%s\\hamcore.se2", MsGetExeDirNameW());
// Extract the File
src_exe = VISTA_DRIVER_INSTALLER_SRC;
if (MsIsX64())
{
src_exe = VISTA_DRIVER_INSTALLER_SRC_X64;
}
if (MsIsIA64())
{
src_exe = VISTA_DRIVER_INSTALLER_SRC_IA64;
}
UniFormat(tmp, sizeof(tmp), VISTA_DRIVER_INSTALLER_DST, MsGetMyTempDirW());
if (FileCopyW(src_exe, tmp) == false)
if (FileCopyW(VISTA_DRIVER_INSTALLER_SRC, tmp) == false)
{
return false;
}
@ -3938,26 +3926,6 @@ LRESULT CALLBACK MsUserModeWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM
return DefWindowProc(hWnd, msg, wParam, lParam);
}
// Get the name of PenCore.dll
char *MsGetPenCoreDllFileName()
{
/*if (Is64())
{
if (IsX64())
{
return PENCORE_DLL_NAME_X64;
}
else
{
return PENCORE_DLL_NAME_IA64;
}
}
else*/
{
return PENCORE_DLL_NAME;
}
}
// Get whether this instance is in user mode
bool MsIsUserMode()
{
@ -4304,11 +4272,11 @@ void MsUserModeW(wchar_t *title, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop
if (Is64())
{
hDll = MsLoadLibraryAsDataFile(MsGetPenCoreDllFileName());
hDll = MsLoadLibraryAsDataFile(PENCORE_DLL_NAME);
}
else
{
hDll = MsLoadLibrary(MsGetPenCoreDllFileName());
hDll = MsLoadLibrary(PENCORE_DLL_NAME);
}
// Read icon
@ -4877,15 +4845,7 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT
wchar_t filename[MAX_PATH];
UniFormat(filename, sizeof(filename), L"\"%s\"", arg_w);
if (Is64() == false)
{
UniFormat(vpncmgr, sizeof(vpncmgr), L"%s\\vpncmgr.exe", MsGetExeDirNameW());
}
else
{
UniFormat(vpncmgr, sizeof(vpncmgr), L"%s\\vpncmgr_x64.exe", MsGetExeDirNameW());
}
UniFormat(vpncmgr, sizeof(vpncmgr), L"%s\\vpncmgr.exe", MsGetExeDirNameW());
RunW(vpncmgr, filename, false, false);
}