[idd] helper: use common/array.h instead of custom macros
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled

This commit is contained in:
Quantum
2026-07-17 21:35:19 -04:00
committed by Geoffrey McRae
parent 58d24da7f3
commit 57d39bdd78
2 changed files with 7 additions and 6 deletions

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(