comctl32: Various const qualifier fixes

Andrew Talbot andrew.talbot at talbotville.com
Wed Jun 3 15:47:16 CDT 2009


Changelog:
    comctl32: Various const qualifier fixes.

diff --git a/dlls/comctl32/comctl32.h b/dlls/comctl32/comctl32.h
index 872638d..1f2f63e 100644
--- a/dlls/comctl32/comctl32.h
+++ b/dlls/comctl32/comctl32.h
@@ -183,15 +183,15 @@ DWORD  WINAPI GetSize (LPVOID);
 INT  WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
 INT  WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
 
-INT  WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
-BOOL WINAPI DPA_Grow (const HDPA, INT);
+INT  WINAPI DPA_GetPtrIndex (HDPA, LPCVOID);
+BOOL WINAPI DPA_Grow (HDPA, INT);
 
 #define DPAM_NOSORT             0x0001
 #define DPAM_INSERT             0x0004
 #define DPAM_DELETE             0x0008
 
 typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM);
-BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
+BOOL WINAPI DPA_Merge (HDPA, HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
 
 #define DPA_GetPtrCount(hdpa)  (*(INT*)(hdpa))
 
diff --git a/dlls/comctl32/dpa.c b/dlls/comctl32/dpa.c
index a14c530..bbad10d 100644
--- a/dlls/comctl32/dpa.c
+++ b/dlls/comctl32/dpa.c
@@ -217,7 +217,7 @@ HRESULT WINAPI DPA_SaveStream (const HDPA hDpa, DPALOADPROC loadProc,
  * NOTES
  *     No more information available yet!
  */
-BOOL WINAPI DPA_Merge (const HDPA hdpa1, const HDPA hdpa2, DWORD dwFlags,
+BOOL WINAPI DPA_Merge (HDPA hdpa1, HDPA hdpa2, DWORD dwFlags,
                        PFNDPACOMPARE pfnCompare, PFNDPAMERGE pfnMerge,
                        LPARAM lParam)
 {
@@ -381,7 +381,7 @@ BOOL WINAPI DPA_Destroy (const HDPA hdpa)
  *     Success: TRUE
  *     Failure: FALSE
  */
-BOOL WINAPI DPA_Grow (const HDPA hdpa, INT nGrow)
+BOOL WINAPI DPA_Grow (HDPA hdpa, INT nGrow)
 {
     TRACE("(%p %d)\n", hdpa, nGrow);
 
@@ -504,7 +504,7 @@ LPVOID WINAPI DPA_GetPtr (const HDPA hdpa, INT nIndex)
  *     Success: index of the specified pointer
  *     Failure: -1
  */
-INT WINAPI DPA_GetPtrIndex (const HDPA hdpa, LPVOID p)
+INT WINAPI DPA_GetPtrIndex (HDPA hdpa, LPCVOID p)
 {
     INT i;
 



More information about the wine-patches mailing list