Fixed: Crash because CreateDialogParam returns NULL (a big thanks to Teanwen!)
--HG-- branch : develop
This commit is contained in:
parent
584621fe2f
commit
6a06255c61
1 changed files with 2 additions and 2 deletions
|
@ -1823,7 +1823,7 @@ INT_PTR CALLBACK VertexProgramDialogCallBack (
|
|||
for (uint vpId=0; vpId<VP_COUNT; vpId++)
|
||||
{
|
||||
// Create the dialog
|
||||
currentParam->SubVPDlg[vpId] = CreateDialogParam (hInstance, MAKEINTRESOURCE(SubVPTab[vpId]), hwndDlg, SubVPProc[vpId], (LONG)lParam);
|
||||
currentParam->SubVPDlg[vpId] = CreateDialogParam (hInstance, MAKEINTRESOURCE(SubVPTab[vpId]), hwndDlg, SubVPProc[vpId], lParam);
|
||||
|
||||
// To client coord
|
||||
RECT client = tabRect;
|
||||
|
@ -2526,7 +2526,7 @@ INT_PTR CALLBACK LodDialogCallback (
|
|||
SendMessage (GetDlgItem (hwndDlg, IDC_TAB), TCM_INSERTITEM, SendMessage (GetDlgItem (hwndDlg, IDC_TAB), TCM_GETITEMCOUNT, 0, 0), (LPARAM)&tabItem);
|
||||
|
||||
// Create the dialog
|
||||
currentParam->SubDlg[tab] = CreateDialogParam (hInstance, MAKEINTRESOURCE(SubTab[tab]), GetDlgItem (hwndDlg, IDC_TAB), SubProc[tab], (LONG)lParam);
|
||||
currentParam->SubDlg[tab] = CreateDialogParam (hInstance, MAKEINTRESOURCE(SubTab[tab]), GetDlgItem (hwndDlg, IDC_TAB), SubProc[tab], lParam);
|
||||
|
||||
// To client coord
|
||||
RECT client = tabRect;
|
||||
|
|
Loading…
Reference in a new issue