mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-17 07:00:39 +03:00
Fix incorrect "Not on NT" error messages
This commit is contained in:
parent
4e8f797036
commit
3a25c6bf73
@ -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 ||
|
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
|
||||||
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
|
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
|
// Tried to use the command for the NT in non-WindowsNT system
|
||||||
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
||||||
|
@ -170,7 +170,6 @@ typedef struct MS
|
|||||||
{
|
{
|
||||||
HINSTANCE hInst;
|
HINSTANCE hInst;
|
||||||
HINSTANCE hKernel32;
|
HINSTANCE hKernel32;
|
||||||
bool IsNt;
|
|
||||||
bool IsAdmin;
|
bool IsAdmin;
|
||||||
HANDLE hCurrentProcess;
|
HANDLE hCurrentProcess;
|
||||||
UINT CurrentProcessId;
|
UINT CurrentProcessId;
|
||||||
|
Loading…
Reference in New Issue
Block a user