Commit in reactos/lib/shell32 on MAIN
dialogs.c+4-191.6 -> 1.7
Fix RestartDialog() prototype

reactos/lib/shell32
dialogs.c 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- dialogs.c	21 Jan 2004 18:38:53 -0000	1.6
+++ dialogs.c	29 Jun 2004 13:51:59 -0000	1.7
@@ -379,7 +379,7 @@
 
 
 /*************************************************************************
- * RestartWindowsDialog				[SHELL32.730]
+ * RestartDialogEx				[SHELL32.730]
  */
 
 int WINAPI RestartDialogEx(HWND hwndOwner, LPCWSTR lpwstrReason, UINT uFlags, UINT uReason)
@@ -410,27 +410,12 @@
 
 
 /*************************************************************************
- * 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);
 }
 
 
CVSspam 0.2.8