From ea58d7edfa175d838f9f0a912ff2443624de46f1 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Wed, 20 Jul 2022 21:09:30 -0400 Subject: [PATCH] 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 --- localization.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/localization.c b/localization.c index 6961727..0270bf6 100644 --- a/localization.c +++ b/localization.c @@ -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); }