From 4e347550d48d94f14fe7550f2bdb93c24004005c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 29 Jun 2004 13:51:59 +0000 Subject: [PATCH] Fix RestartDialog() prototype svn path=/trunk/; revision=9929 --- reactos/lib/shell32/dialogs.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/reactos/lib/shell32/dialogs.c b/reactos/lib/shell32/dialogs.c index 11a70f9b9f3..bd19cd458d5 100644 --- a/reactos/lib/shell32/dialogs.c +++ b/reactos/lib/shell32/dialogs.c @@ -379,7 +379,7 @@ void FillList (HWND hCb, char *pszLatest) /************************************************************************* - * RestartWindowsDialog [SHELL32.730] + * RestartDialogEx [SHELL32.730] */ int WINAPI RestartDialogEx(HWND hwndOwner, LPCWSTR lpwstrReason, UINT uFlags, UINT uReason) @@ -410,27 +410,12 @@ int WINAPI RestartDialogEx(HWND hwndOwner, LPCWSTR lpwstrReason, UINT uFlags, UI /************************************************************************* - * RestartWindowsDialog [SHELL32.59] + * RestartDialog [SHELL32.59] */ -int WINAPI RestartDialog(HWND hwndOwner, LPCSTR lpstrReason, UINT uFlags) +int WINAPI RestartDialog(HWND hwndOwner, LPCWSTR lpstrReason, UINT uFlags) { - LPWSTR lpwcsReason; - int len, ret; - - if (lpstrReason) { - len = MultiByteToWideChar(CP_ACP, 0, lpstrReason, -1, NULL, 0); - lpwcsReason = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); - MultiByteToWideChar(CP_ACP, 0, lpstrReason, -1, lpwcsReason, len); - } else - lpwcsReason = NULL; - - ret = RestartDialogEx(hwndOwner, lpwcsReason, uFlags, 0); - - if (lpwcsReason) - HeapFree(GetProcessHeap(), 0, lpwcsReason); - - return ret; + return RestartDialogEx(hwndOwner, lpstrReason, uFlags, 0); }