From 95c15b34d7e3dfc34277c1a6b5bf068dca7f3b8f Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 11 Jan 2014 14:43:31 +0000 Subject: [PATCH] [MSGINA] GUIDisplaySASNotice: Use the WlxDialogBoyParam function to create the SAS notice dialog. svn path=/trunk/; revision=61581 --- reactos/dll/win32/msgina/gui.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/reactos/dll/win32/msgina/gui.c b/reactos/dll/win32/msgina/gui.c index 66fab2697b4..d72af67a4c5 100644 --- a/reactos/dll/win32/msgina/gui.c +++ b/reactos/dll/win32/msgina/gui.c @@ -184,23 +184,15 @@ static VOID GUIDisplaySASNotice( IN OUT PGINA_CONTEXT pgContext) { - INT result; - TRACE("GUIDisplaySASNotice()\n"); /* Display the notice window */ - result = DialogBoxParam( - pgContext->hDllInstance, - MAKEINTRESOURCE(IDD_NOTICE_DLG), - GetDesktopWindow(), - EmptyWindowProc, - (LPARAM)NULL); - if (result == -1) - { - /* Failed to display the window. Do as if the user - * already has pressed CTRL+ALT+DELETE */ - pgContext->pWlxFuncs->WlxSasNotify(pgContext->hWlx, WLX_SAS_TYPE_CTRL_ALT_DEL); - } + pgContext->pWlxFuncs->WlxDialogBoxParam(pgContext->hWlx, + pgContext->hDllInstance, + MAKEINTRESOURCEW(IDD_NOTICE_DLG), + GetDesktopWindow(), + EmptyWindowProc, + (LPARAM)NULL); } /* Get the text contained in a textbox. Allocates memory in pText -- 2.17.1