- Fixes that Dmitry Krutskih sent me per mail a zillion months ago
This commit is contained in:
parent
da23a32e2e
commit
fd28e7e285
|
@ -41,8 +41,8 @@ BOOL LightView_OnClose(lightview_struct* win)
|
||||||
{
|
{
|
||||||
win->window.autoup = FALSE;
|
win->window.autoup = FALSE;
|
||||||
CWindow_RemoveFromRefreshList(win);
|
CWindow_RemoveFromRefreshList(win);
|
||||||
LightView_Deinit(win);
|
|
||||||
EndDialog(win->window.hwnd, 0);
|
EndDialog(win->window.hwnd, 0);
|
||||||
|
LightView_Deinit(win);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,8 +74,8 @@ BOOL MatrixView_OnClose(matrixview_struct* win)
|
||||||
{
|
{
|
||||||
win->window.autoup = FALSE;
|
win->window.autoup = FALSE;
|
||||||
CWindow_RemoveFromRefreshList(win);
|
CWindow_RemoveFromRefreshList(win);
|
||||||
MatrixView_Deinit(win);
|
|
||||||
EndDialog(win->window.hwnd, 0);
|
EndDialog(win->window.hwnd, 0);
|
||||||
|
MatrixView_Deinit(win);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ matrixview_struct *MatrixView_Init(HINSTANCE hInst, HWND parent)
|
||||||
if ((MatrixView = (matrixview_struct *)malloc(sizeof(matrixview_struct))) == NULL)
|
if ((MatrixView = (matrixview_struct *)malloc(sizeof(matrixview_struct))) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (CWindow_Init2(MatrixView, hInst, parent, "Matrix viewer", IDD_MATRIX_VIEWER, MatrixView_Proc) != 0)
|
if (CWindow_Init2(&MatrixView->window, hInst, parent, "Matrix viewer", IDD_MATRIX_VIEWER, MatrixView_Proc) != 0)
|
||||||
{
|
{
|
||||||
free(MatrixView);
|
free(MatrixView);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue