update group format to account for that \0

This commit is contained in:
freedom7341
2023-09-27 13:39:03 -06:00
parent b2413ad307
commit 58e6635bae

View File

@@ -30,15 +30,15 @@
// Item Structure // Item Structure
typedef struct _ITEM { typedef struct _ITEM {
// Item executable and name // Item executable and name
WCHAR szName[MAX_TITLE_LENGTH]; WCHAR szName[MAX_TITLE_LENGTH + 1];
WCHAR szExecPath[MAX_PATH]; // Path of the executable WCHAR szExecPath[MAX_PATH + 1]; // Path of the executable
WCHAR szWorkPath[MAX_PATH]; // Working directory WCHAR szWorkPath[MAX_PATH + 1]; // 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]; WCHAR szIconPath[MAX_PATH + 1];
INT iIconIndex; INT iIconIndex;
} ITEM, * PITEM; } ITEM, * PITEM;
@@ -49,13 +49,13 @@ 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]; WCHAR szName[MAX_TITLE_LENGTH + 1];
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;
// Icon // Icon
WCHAR szIconPath[MAX_PATH]; WCHAR szIconPath[MAX_PATH + 1];
INT iIconIndex; INT iIconIndex;
// Items // Items
WORD cItems; // Number of items WORD cItems; // Number of items