From 154bed910666cbcbd951e364abfb195d19980ffa Mon Sep 17 00:00:00 2001 From: Brady McDermott Date: Mon, 21 Oct 2024 18:27:21 -0600 Subject: [PATCH] remove all the +1 ill probably be okay without them --- progmgr/group.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/progmgr/group.h b/progmgr/group.h index 0232720..17dc596 100644 --- a/progmgr/group.h +++ b/progmgr/group.h @@ -33,15 +33,15 @@ // Item Structure typedef struct _ITEM { // Item executable and name - WCHAR szName[MAX_TITLE_LENGTH + 1]; - WCHAR szExecPath[MAX_PATH + 1]; // Path of the executable - WCHAR szWorkPath[MAX_PATH + 1]; // Working directory + WCHAR szName[MAX_TITLE_LENGTH]; + WCHAR szExecPath[MAX_PATH]; // Path of the executable + WCHAR szWorkPath[MAX_PATH]; // Working directory // Item flags DWORD dwFlags; // Use with ITM_FLAG_* values. UINT uiHotkeyModifiers; UINT uiHotkeyVirtualKey; // Icon - WCHAR szIconPath[MAX_PATH + 1]; + WCHAR szIconPath[MAX_PATH]; INT iIconIndex; } ITEM, * PITEM; @@ -52,14 +52,14 @@ typedef struct _GROUP { WORD wVersion; // Group format version WORD wChecksum; // Group information - WCHAR szName[MAX_TITLE_LENGTH + 1]; + WCHAR szName[MAX_TITLE_LENGTH]; DWORD dwFlags; // Use with GRP_FLAG_* values. FILETIME ftLastWrite; // Window information RECT rcGroup; WINDOWPLACEMENT wp; // Icon - WCHAR szIconPath[MAX_PATH + 1]; + WCHAR szIconPath[MAX_PATH]; INT iIconIndex; // Items WORD cItemArray; // Number of items in pItemArray