Fix: PropertyGrid crash when you resize it after it resets

This commit is contained in:
MusicalProgrammer
2022-10-06 21:36:12 -04:00
parent b21d140d6f
commit 1a0949f2e8

View File

@@ -3917,7 +3917,7 @@ static BOOL Grid_OnGetSel(INT iItem)
static VOID Grid_OnResetContent(VOID) static VOID Grid_OnResetContent(VOID)
{ {
ListBox_ResetContent(g_lpInst->hwndListMap); ListBox_ResetContent(g_lpInst->hwndListMap);
g_lpInst->lpCurrent = NULL;
if (NULL != g_lpInst->hwndCtl1) if (NULL != g_lpInst->hwndCtl1)
{ {
DestroyWindow(g_lpInst->hwndCtl1); DestroyWindow(g_lpInst->hwndCtl1);