shell32: Pass the shutdown reason to ExitWindowsEx().

This commit is contained in:
Francois Gouget 2007-10-28 02:35:51 +02:00 committed by Alexandre Julliard
parent 58ed14eb52
commit 9e82e46a84
1 changed files with 2 additions and 3 deletions

View File

@ -384,8 +384,7 @@ int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, D
{ {
TRACE("(%p)\n", hWndOwner); TRACE("(%p)\n", hWndOwner);
/*FIXME: use uReason */ /* FIXME: use lpwstrReason */
if (ConfirmDialog(hWndOwner, IDS_RESTART_PROMPT, IDS_RESTART_TITLE)) if (ConfirmDialog(hWndOwner, IDS_RESTART_PROMPT, IDS_RESTART_TITLE))
{ {
HANDLE hToken; HANDLE hToken;
@ -400,7 +399,7 @@ int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, D
AdjustTokenPrivileges(hToken, FALSE, &npr, 0, 0, 0); AdjustTokenPrivileges(hToken, FALSE, &npr, 0, 0, 0);
CloseHandle(hToken); CloseHandle(hToken);
} }
ExitWindowsEx(EWX_REBOOT, 0); ExitWindowsEx(EWX_REBOOT, uReason);
} }
return 0; return 0;