remove all the +1 ill probably be okay without them

This commit is contained in:
Brady McDermott
2024-10-21 18:27:21 -06:00
parent b13ce0578b
commit 154bed9106

View File

@@ -33,15 +33,15 @@
// Item Structure // Item Structure
typedef struct _ITEM { typedef struct _ITEM {
// Item executable and name // Item executable and name
WCHAR szName[MAX_TITLE_LENGTH + 1]; WCHAR szName[MAX_TITLE_LENGTH];
WCHAR szExecPath[MAX_PATH + 1]; // Path of the executable WCHAR szExecPath[MAX_PATH]; // Path of the executable
WCHAR szWorkPath[MAX_PATH + 1]; // Working directory WCHAR szWorkPath[MAX_PATH]; // Working directory
// Item flags // Item flags
DWORD dwFlags; // Use with ITM_FLAG_* values. DWORD dwFlags; // Use with ITM_FLAG_* values.
UINT uiHotkeyModifiers; UINT uiHotkeyModifiers;
UINT uiHotkeyVirtualKey; UINT uiHotkeyVirtualKey;
// Icon // Icon
WCHAR szIconPath[MAX_PATH + 1]; WCHAR szIconPath[MAX_PATH];
INT iIconIndex; INT iIconIndex;
} ITEM, * PITEM; } ITEM, * PITEM;
@@ -52,14 +52,14 @@ typedef struct _GROUP {
WORD wVersion; // Group format version WORD wVersion; // Group format version
WORD wChecksum; WORD wChecksum;
// Group information // Group information
WCHAR szName[MAX_TITLE_LENGTH + 1]; WCHAR szName[MAX_TITLE_LENGTH];
DWORD dwFlags; // Use with GRP_FLAG_* values. DWORD dwFlags; // Use with GRP_FLAG_* values.
FILETIME ftLastWrite; FILETIME ftLastWrite;
// Window information // Window information
RECT rcGroup; RECT rcGroup;
WINDOWPLACEMENT wp; WINDOWPLACEMENT wp;
// Icon // Icon
WCHAR szIconPath[MAX_PATH + 1]; WCHAR szIconPath[MAX_PATH];
INT iIconIndex; INT iIconIndex;
// Items // Items
WORD cItemArray; // Number of items in pItemArray WORD cItemArray; // Number of items in pItemArray