Parent status and message box windows in the GUI

- Proper parenting is required for PLAP and cannot
  hurt in general. The parent window in GUI mode
  is the main window. In PLAP it will be the handle
  obtained from LogonUI.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
pull/518/head
Selva Nair 2022-07-20 21:09:30 -04:00
parent 788a4c1f9e
commit ea58d7edfa
1 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ LocalizedDialogBoxParam(const UINT dialogId, DLGPROC dialogFunc, const LPARAM pa
if (resInfo == NULL)
return -1;
return DialogBoxIndirectParam(o.hInstance, resInfo, NULL, dialogFunc, param);
return DialogBoxIndirectParam(o.hInstance, resInfo, o.hWnd, dialogFunc, param);
}
@ -380,7 +380,7 @@ CreateLocalizedDialogParam(const UINT dialogId, DLGPROC dialogFunc, const LPARAM
if (resInfo == NULL)
return NULL;
return CreateDialogIndirectParam(o.hInstance, resInfo, NULL, dialogFunc, param);
return CreateDialogIndirectParam(o.hInstance, resInfo, o.hWnd, dialogFunc, param);
}