Skip to content

Commit

Permalink
Merge pull request SoftEtherVPN#2033 from siddharth-narayan/nt-fix
Browse files Browse the repository at this point in the history
Fix "Not on NT" error message and add uihelp to vpncmd
  • Loading branch information
chipitsine authored Sep 21, 2024
2 parents 5d1ce1a + 27d233a commit e94240d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Mayaqua/Microsoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -4259,7 +4259,7 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT

if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
(ms->IsNt == false))
(IsNt() == false))
{
// Tried to use the command for the NT in non-WindowsNT system
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
Expand Down
1 change: 0 additions & 1 deletion src/Mayaqua/Microsoft.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ typedef struct MS
{
HINSTANCE hInst;
HINSTANCE hKernel32;
bool IsNt;
bool IsAdmin;
HANDLE hCurrentProcess;
UINT CurrentProcessId;
Expand Down
8 changes: 7 additions & 1 deletion src/vpncmd/vpncmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
// VPN Command Line Management Utility

#include "Cedar/Cedar.h"

#ifdef OS_WIN32
#include "Cedar/CMInner.h"
#endif
#include "Cedar/Command.h"

#include "Mayaqua/Internat.h"
Expand Down Expand Up @@ -39,6 +41,10 @@ int main(int argc, char *argv[])
#endif
InitCedar();

#ifdef OS_WIN32
CmExecUiHelperMain();
#endif

s = GetCommandLineUniStr();

if (s == NULL)
Expand Down

0 comments on commit e94240d

Please sign in to comment.