it no longer crashes
This commit is contained in:
@@ -33,6 +33,7 @@ WCHAR szDlgTitle[64];
|
|||||||
\* * * */
|
\* * * */
|
||||||
BOOL CALLBACK NewGroupDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
BOOL CALLBACK NewGroupDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
// TODO: warning C4047: 'initializing': 'WCHAR' differs in levels of indirection from 'void *'
|
||||||
static GROUP grp = {
|
static GROUP grp = {
|
||||||
.dwSignature = GRP_SIGNATURE,
|
.dwSignature = GRP_SIGNATURE,
|
||||||
.wVersion = GRP_VERSION,
|
.wVersion = GRP_VERSION,
|
||||||
@@ -66,7 +67,7 @@ BOOL CALLBACK NewGroupDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM
|
|||||||
grp.wChecksum = 0;
|
grp.wChecksum = 0;
|
||||||
grp.dwFlags = 0;
|
grp.dwFlags = 0;
|
||||||
grp.cItemArray = 0;
|
grp.cItemArray = 0;
|
||||||
grp.pItemArray = NULL;
|
// grp.pItemArray = 0; TODO: idk make sure this ain't all screwed up
|
||||||
|
|
||||||
// Set the window title
|
// Set the window title
|
||||||
LoadString(hAppInstance, IDS_DLT_GRP_NEW, szDlgTitle, ARRAYSIZE(szDlgTitle));
|
LoadString(hAppInstance, IDS_DLT_GRP_NEW, szDlgTitle, ARRAYSIZE(szDlgTitle));
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ PITEM CreateItem(_In_ HWND hWndGroup, _In_ PITEM pi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add the item
|
// add the item
|
||||||
pItem = pGroup->pItemArray + pGroup->cItemArray;
|
pItem = &pGroup->pItemArray + pGroup->cItemArray;
|
||||||
*pItem = *pi;
|
*pItem = *pi;
|
||||||
|
|
||||||
// increment the item counter
|
// increment the item counter
|
||||||
@@ -281,7 +281,7 @@ GROUP SaveGroup(_In_ PGROUP pg)
|
|||||||
.dwSignature = GRP_SIGNATURE,
|
.dwSignature = GRP_SIGNATURE,
|
||||||
.wVersion = GRP_VERSION,
|
.wVersion = GRP_VERSION,
|
||||||
.wChecksum = 0,
|
.wChecksum = 0,
|
||||||
.szName = TEXT(""),
|
.szName = (VOID *)TEXT(""),
|
||||||
.dwFlags = 0,
|
.dwFlags = 0,
|
||||||
.ftLastWrite = 0,
|
.ftLastWrite = 0,
|
||||||
.cItemArray = 0,
|
.cItemArray = 0,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ typedef struct _GROUP {
|
|||||||
INT iIconIndex;
|
INT iIconIndex;
|
||||||
// Items
|
// Items
|
||||||
WORD cItemArray; // Number of items in pItemArray
|
WORD cItemArray; // Number of items in pItemArray
|
||||||
PITEM pItemArray; // Array of items
|
ITEM pItemArray; // Array of items
|
||||||
} GROUP, * PGROUP;
|
} GROUP, * PGROUP;
|
||||||
|
|
||||||
/* Global Variables */
|
/* Global Variables */
|
||||||
|
|||||||
Reference in New Issue
Block a user