Module: wine Branch: master Commit: 9e82e46a8470762d393fd824ccc80bcedcfe6160 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e82e46a8470762d393fd824cc...
Author: Francois Gouget fgouget@free.fr Date: Sun Oct 28 02:35:51 2007 +0200
shell32: Pass the shutdown reason to ExitWindowsEx().
---
dlls/shell32/dialogs.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c index eb5c1a1..76c3d6e 100644 --- a/dlls/shell32/dialogs.c +++ b/dlls/shell32/dialogs.c @@ -384,8 +384,7 @@ int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, D { TRACE("(%p)\n", hWndOwner);
- /*FIXME: use uReason */ - + /* FIXME: use lpwstrReason */ if (ConfirmDialog(hWndOwner, IDS_RESTART_PROMPT, IDS_RESTART_TITLE)) { HANDLE hToken; @@ -400,7 +399,7 @@ int WINAPI RestartDialogEx(HWND hWndOwner, LPCWSTR lpwstrReason, DWORD uFlags, D AdjustTokenPrivileges(hToken, FALSE, &npr, 0, 0, 0); CloseHandle(hToken); } - ExitWindowsEx(EWX_REBOOT, 0); + ExitWindowsEx(EWX_REBOOT, uReason); }
return 0;