[idd] helper: use common/array.h instead of custom macros

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2026-07-23 09:44:00 +10:00
1 parent 0da56a67bb
commit 28f18188c4
2 files changed
+7 -6

No files matched your search

+3 -2
View File
@@ -35,7 +35,8 @@ using namespace Microsoft::WRL::Wrappers::HandleTraits;
#include "CNotifyWindow.h"
#include "CConfigWindow.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof*(x))
#include "common/array.h"
#define SVCNAME L"Looking Glass (IDD Helper)"
static SERVICE_STATUS_HANDLE l_svcStatusHandle;
@@ -424,7 +425,7 @@ static void Launch()
}
wchar_t cmdBuf[128];
_snwprintf_s(cmdBuf, ARRAY_SIZE(cmdBuf), L"LGIddHelper.exe %" PRId32,
_snwprintf_s(cmdBuf, ARRAY_LENGTH(cmdBuf), L"LGIddHelper.exe %" PRId32,
GetCurrentProcessId());
if (!CreateProcessAsUser(