Andrew Talbot : comctl32: Cast-qual warnings fix.
Module: wine Branch: master Commit: 30dd37edb0f6ddcad47a5300fd964d90d032521b URL: http://source.winehq.org/git/wine.git/?a=commit;h=30dd37edb0f6ddcad47a5300fd... Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Thu Oct 19 21:59:22 2006 +0100 comctl32: Cast-qual warnings fix. --- dlls/comctl32/comctl32undoc.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index aff2103..ad70a0b 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -174,7 +174,7 @@ DWORD WINAPI GetSize (LPVOID lpMem) *| DWORD nMaxItems; *| DWORD dwFlags; *| HKEY hKey; - *| LPCTSTR lpszSubKey; + *| LPTSTR lpszSubKey; *| PROC lpfnCompare; *|} CREATEMRULIST, *LPCREATEMRULIST; * @@ -212,7 +212,7 @@ typedef struct tagCREATEMRULISTA DWORD nMaxItems; DWORD dwFlags; HKEY hKey; - LPCSTR lpszSubKey; + LPSTR lpszSubKey; PROC lpfnCompare; } CREATEMRULISTA, *LPCREATEMRULISTA; @@ -222,7 +222,7 @@ typedef struct tagCREATEMRULISTW DWORD nMaxItems; DWORD dwFlags; HKEY hKey; - LPCWSTR lpszSubKey; + LPWSTR lpszSubKey; PROC lpfnCompare; } CREATEMRULISTW, *LPCREATEMRULISTW; @@ -357,7 +357,7 @@ void WINAPI FreeMRUList (HANDLE hMRUList } Free(mp->realMRU); Free(mp->array); - Free((LPWSTR)mp->extview.lpszSubKey); + Free(mp->extview.lpszSubKey); Free(mp); } @@ -742,7 +742,7 @@ HANDLE WINAPI CreateMRUListLazyW (LPCREA 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 @@ HANDLE WINAPI CreateMRUListLazyA (LPCREA 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); }
participants (1)
-
Alexandre Julliard