comctl32: Cast-qual warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Oct 19 15:59:22 CDT 2006
Changelog:
comctl32: Cast-qual warnings fix.
diff -urN a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c
--- a/dlls/comctl32/comctl32undoc.c 2006-10-18 17:50:23.000000000 +0100
+++ b/dlls/comctl32/comctl32undoc.c 2006-10-19 21:34:57.000000000 +0100
@@ -174,7 +174,7 @@
*| DWORD nMaxItems;
*| DWORD dwFlags;
*| HKEY hKey;
- *| LPCTSTR lpszSubKey;
+ *| LPTSTR lpszSubKey;
*| PROC lpfnCompare;
*|} CREATEMRULIST, *LPCREATEMRULIST;
*
@@ -212,7 +212,7 @@
DWORD nMaxItems;
DWORD dwFlags;
HKEY hKey;
- LPCSTR lpszSubKey;
+ LPSTR lpszSubKey;
PROC lpfnCompare;
} CREATEMRULISTA, *LPCREATEMRULISTA;
@@ -222,7 +222,7 @@
DWORD nMaxItems;
DWORD dwFlags;
HKEY hKey;
- LPCWSTR lpszSubKey;
+ LPWSTR lpszSubKey;
PROC lpfnCompare;
} CREATEMRULISTW, *LPCREATEMRULISTW;
@@ -357,7 +357,7 @@
}
Free(mp->realMRU);
Free(mp->array);
- Free((LPWSTR)mp->extview.lpszSubKey);
+ Free(mp->extview.lpszSubKey);
Free(mp);
}
@@ -742,7 +742,7 @@
mp = Alloc(sizeof(WINEMRULIST));
memcpy(&mp->extview, lpcml, sizeof(CREATEMRULISTW));
mp->extview.lpszSubKey = Alloc((strlenW(lpcml->lpszSubKey) + 1) * sizeof(WCHAR));
- strcpyW((LPWSTR)mp->extview.lpszSubKey, lpcml->lpszSubKey);
+ strcpyW(mp->extview.lpszSubKey, lpcml->lpszSubKey);
mp->isUnicode = TRUE;
return CreateMRUListLazy_common(mp);
@@ -779,7 +779,7 @@
len = MultiByteToWideChar(CP_ACP, 0, lpcml->lpszSubKey, -1, NULL, 0);
mp->extview.lpszSubKey = Alloc(len * sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, lpcml->lpszSubKey, -1,
- (LPWSTR)mp->extview.lpszSubKey, len);
+ mp->extview.lpszSubKey, len);
mp->isUnicode = FALSE;
return CreateMRUListLazy_common(mp);
}
More information about the wine-patches
mailing list