Commit in reactos/lib/user32/windows on MAIN
messagebox.c+6-61.27 -> 1.28
Don't rely on UNICODE being #define'ed

reactos/lib/user32/windows
messagebox.c 1.27 -> 1.28
diff -u -r1.27 -r1.28
--- messagebox.c	15 Aug 2004 21:36:30 -0000	1.27
+++ messagebox.c	7 Oct 2004 19:20:57 -0000	1.28
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: messagebox.c,v 1.27 2004/08/15 21:36:30 chorns Exp $
+/* $Id: messagebox.c,v 1.28 2004/10/07 19:20:57 gvg Exp $
  *
  * PROJECT:         ReactOS user32.dll
  * FILE:            lib/user32/windows/messagebox.c
@@ -204,7 +204,7 @@
 #define SAFETY_MARGIN 32 /* Extra number of bytes to allocate in case we counted wrong */
 static int
 MessageBoxTimeoutIndirectW(
-  CONST MSGBOXPARAMS *lpMsgBoxParams, UINT Timeout)
+  CONST MSGBOXPARAMSW *lpMsgBoxParams, UINT Timeout)
 {
     DLGTEMPLATE *tpl;
     DLGITEMTEMPLATE *iico, *itxt;
@@ -213,7 +213,7 @@
     HMODULE hUser32;
     LPVOID buf;
     BYTE *dest;
-    LPWSTR caption, text;
+    LPCWSTR caption, text;
     HFONT hFont;
     HICON Icon;
     HDC hDC;
@@ -237,10 +237,10 @@
     else
       caption = (LPWSTR)lpMsgBoxParams->lpszCaption;
       
-    if(!lpMsgBoxParams->lpszText || !HIWORD((LPWSTR)lpMsgBoxParams->lpszText))
+    if(!lpMsgBoxParams->lpszText || !HIWORD(lpMsgBoxParams->lpszText))
       text = L"";
     else
-      text = (LPWSTR)lpMsgBoxParams->lpszText;
+      text = lpMsgBoxParams->lpszText;
     
     caplen = strlenW(caption);
     textlen = strlenW(text);
@@ -311,7 +311,7 @@
         MessageBeep(MB_ICONHAND);
         break;
       case MB_USERICON:
-        Icon = LoadIconW(lpMsgBoxParams->hInstance, (LPCWSTR)lpMsgBoxParams->lpszIcon);
+        Icon = LoadIconW(lpMsgBoxParams->hInstance, lpMsgBoxParams->lpszIcon);
         MessageBeep(MB_OK);
         break;
       default:
CVSspam 0.2.8