From 3a25c6bf736a800718698062a5f4a3644727de82 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 17 Jul 2024 15:16:11 -0700 Subject: [PATCH] Fix incorrect "Not on NT" error messages --- src/Mayaqua/Microsoft.c | 2 +- src/Mayaqua/Microsoft.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mayaqua/Microsoft.c b/src/Mayaqua/Microsoft.c index 4579b301..8978e80e 100644 --- a/src/Mayaqua/Microsoft.c +++ b/src/Mayaqua/Microsoft.c @@ -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")); diff --git a/src/Mayaqua/Microsoft.h b/src/Mayaqua/Microsoft.h index 0044bbda..69ca7715 100644 --- a/src/Mayaqua/Microsoft.h +++ b/src/Mayaqua/Microsoft.h @@ -170,7 +170,6 @@ typedef struct MS { HINSTANCE hInst; HINSTANCE hKernel32; - bool IsNt; bool IsAdmin; HANDLE hCurrentProcess; UINT CurrentProcessId;