From 6994071269184c5db7b9ede376e3519cb0e518b4 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 19 Jan 2008 16:54:31 +0000 Subject: [PATCH] shell32: Remove unneeded casts. --- dlls/shell32/shlfolder.c | 2 +- dlls/shell32/shv_item_cmenu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c index 11aeab5b8a7..cff924f8354 100644 --- a/dlls/shell32/shlfolder.c +++ b/dlls/shell32/shlfolder.c @@ -135,7 +135,7 @@ LPCWSTR GetNextElementW (LPCWSTR pszNext, LPWSTR pszOut, DWORD dwOut) while (*pszTail && (*pszTail != (WCHAR) '\\')) pszTail++; - dwCopy = (const WCHAR *) pszTail - (const WCHAR *) pszNext + 1; + dwCopy = pszTail - pszNext + 1; lstrcpynW (pszOut, pszNext, (dwOut < dwCopy) ? dwOut : dwCopy); if (*pszTail) diff --git a/dlls/shell32/shv_item_cmenu.c b/dlls/shell32/shv_item_cmenu.c index b0ec250ed3d..6beb08f0bdf 100644 --- a/dlls/shell32/shv_item_cmenu.c +++ b/dlls/shell32/shv_item_cmenu.c @@ -472,7 +472,7 @@ static HRESULT WINAPI ISvItemCm_fnGetCommandString( switch(idCommand) { case FCIDM_SHVIEW_RENAME: - strcpy((LPSTR)lpszName, "rename"); + strcpy(lpszName, "rename"); hr = NOERROR; break; }