shell32: Remove unneeded casts (3 of 3)
Andrew Talbot
andrew.talbot at talbotville.com
Sat Jan 19 10:54:31 CST 2008
Changelog:
shell32: Remove unneeded casts.
diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c
index 11aeab5..cff924f 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 b0ec250..6beb08f 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;
}
More information about the wine-patches
mailing list