Andrew Talbot : comdlg32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Sep 7 07:12:24 CDT 2006


Module: wine
Branch: master
Commit: a1cb75e91b65422f6e364fc821d74e3460f753e2
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=a1cb75e91b65422f6e364fc821d74e3460f753e2

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Sep  1 20:22:35 2006 +0100

comdlg32: Cast-qual warnings fix.

---

 dlls/comdlg32/colordlg16.c |    4 ++--
 dlls/comdlg32/filedlg16.c  |    4 ++--
 dlls/comdlg32/finddlg16.c  |    2 +-
 dlls/comdlg32/fontdlg16.c  |    4 ++--
 dlls/comdlg32/printdlg16.c |    2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/comdlg32/colordlg16.c b/dlls/comdlg32/colordlg16.c
index 3ab94cb..a3d651a 100644
--- a/dlls/comdlg32/colordlg16.c
+++ b/dlls/comdlg32/colordlg16.c
@@ -400,7 +400,7 @@ BOOL16 WINAPI ChooseColor16( LPCHOOSECOL
     HANDLE16 hDlgTmpl16 = 0, hResource16 = 0;
     HGLOBAL16 hGlobal16 = 0;
     BOOL16 bRet = FALSE;
-    LPCVOID template;
+    LPVOID template;
     FARPROC16 ptr;
 
     TRACE("ChooseColor\n");
@@ -458,7 +458,7 @@ BOOL16 WINAPI ChooseColor16( LPCHOOSECOL
             GlobalFree16(hGlobal16);
             return FALSE;
         }
-        ConvertDialog32To16((LPVOID)template32, size, (LPVOID)template);
+        ConvertDialog32To16(template32, size, template);
         hDlgTmpl16 = hGlobal16;
     }
 
diff --git a/dlls/comdlg32/filedlg16.c b/dlls/comdlg32/filedlg16.c
index 294a5c5..55a3e0f 100644
--- a/dlls/comdlg32/filedlg16.c
+++ b/dlls/comdlg32/filedlg16.c
@@ -89,7 +89,7 @@ static BOOL FD16_GetTemplate(PFD31_DATA 
 {
     PFD16_PRIVATE priv = (PFD16_PRIVATE) lfs->private1632;
     LPOPENFILENAME16 ofn16 = priv->ofn16;
-    LPCVOID template;
+    LPVOID template;
     HGLOBAL16 hGlobal16 = 0;
 
     if (ofn16->Flags & OFN_ENABLETEMPLATEHANDLE)
@@ -146,7 +146,7 @@ static BOOL FD16_GetTemplate(PFD31_DATA 
             GlobalFree16(hGlobal16);
             return FALSE;
         }
-        ConvertDialog32To16((LPVOID)template32, size, (LPVOID)template);
+        ConvertDialog32To16(template32, size, template);
         priv->hDlgTmpl16 = hGlobal16;
         priv->hGlobal16 = hGlobal16;
     }
diff --git a/dlls/comdlg32/finddlg16.c b/dlls/comdlg32/finddlg16.c
index c842376..a86e5eb 100644
--- a/dlls/comdlg32/finddlg16.c
+++ b/dlls/comdlg32/finddlg16.c
@@ -137,7 +137,7 @@ static BOOL FINDDLG_Get16BitsTemplate(LF
             GlobalFree16(hGlobal16);
             return FALSE;
         }
-        ConvertDialog32To16((LPVOID)template32, size, (LPVOID)lfr->template);
+        ConvertDialog32To16(template32, size, (LPVOID)lfr->template);
         lfr->hDlgTmpl16 = hGlobal16;
         lfr->hGlobal16 = hGlobal16;
     }
diff --git a/dlls/comdlg32/fontdlg16.c b/dlls/comdlg32/fontdlg16.c
index 4fd0d2f..a90dca2 100644
--- a/dlls/comdlg32/fontdlg16.c
+++ b/dlls/comdlg32/fontdlg16.c
@@ -167,7 +167,7 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT1
     HANDLE16 hDlgTmpl16 = 0, hResource16 = 0;
     HGLOBAL16 hGlobal16 = 0;
     BOOL16 bRet = FALSE;
-    LPCVOID template;
+    LPVOID template;
     FARPROC16 ptr;
     CHOOSEFONTW cf32w;
     LOGFONTW lf32w;
@@ -241,7 +241,7 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT1
             GlobalFree16(hGlobal16);
             return FALSE;
         }
-        ConvertDialog32To16((LPVOID)template32, size, (LPVOID)template);
+        ConvertDialog32To16(template32, size, template);
         hDlgTmpl16 = hGlobal16;
 
     }
diff --git a/dlls/comdlg32/printdlg16.c b/dlls/comdlg32/printdlg16.c
index 9d5f9dc..65384c1 100644
--- a/dlls/comdlg32/printdlg16.c
+++ b/dlls/comdlg32/printdlg16.c
@@ -260,7 +260,7 @@ static HGLOBAL16 PRINTDLG_Get16TemplateF
             GlobalFree16(hGlobal16);
             return 0;
         }
-        ConvertDialog32To16((LPVOID)template32, size, (LPVOID)template);
+        ConvertDialog32To16(template32, size, template);
         GlobalUnlock16(hGlobal16);
         return hGlobal16;
 }




More information about the wine-cvs mailing list