Commit 52db721a authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

shell32: Remove unneeded casts.

parent e48bbc23
...@@ -578,8 +578,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -578,8 +578,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
if (hr != S_OK) if (hr != S_OK)
break; break;
if ((LPWSTR)strstrW(strs, hwndText) == strs) { if (strstrW(strs, hwndText) == strs) {
if (This->options & ACO_AUTOAPPEND) { if (This->options & ACO_AUTOAPPEND) {
SetWindowTextW(hwnd, strs); SetWindowTextW(hwnd, strs);
SendMessageW(hwnd, EM_SETSEL, lstrlenW(hwndText), lstrlenW(strs)); SendMessageW(hwnd, EM_SETSEL, lstrlenW(hwndText), lstrlenW(strs));
......
...@@ -290,7 +290,7 @@ static HTREEITEM InsertTreeViewItem( browse_info *info, IShellFolder * lpsf, ...@@ -290,7 +290,7 @@ static HTREEITEM InsertTreeViewItem( browse_info *info, IShellFolder * lpsf,
tvins.hInsertAfter = NULL; tvins.hInsertAfter = NULL;
tvins.hParent = hParent; tvins.hParent = hParent;
return (HTREEITEM)TreeView_InsertItemW( info->hwndTreeView, &tvins ); return TreeView_InsertItemW( info->hwndTreeView, &tvins );
} }
/****************************************************************************** /******************************************************************************
......
...@@ -423,7 +423,7 @@ DWORD WINAPI NTSHChangeNotifyRegister( ...@@ -423,7 +423,7 @@ DWORD WINAPI NTSHChangeNotifyRegister(
FIXME("(%p,0x%08x,0x%08x,0x%08x,0x%08x,%p):semi stub.\n", FIXME("(%p,0x%08x,0x%08x,0x%08x,0x%08x,%p):semi stub.\n",
hwnd,events1,events2,msg,count,idlist); hwnd,events1,events2,msg,count,idlist);
return (DWORD) SHChangeNotifyRegister(hwnd, events1, events2, msg, count, idlist); return SHChangeNotifyRegister(hwnd, events1, events2, msg, count, idlist);
} }
/************************************************************************* /*************************************************************************
...@@ -448,7 +448,7 @@ HANDLE WINAPI SHChangeNotification_Lock( ...@@ -448,7 +448,7 @@ HANDLE WINAPI SHChangeNotification_Lock(
{ {
idlist = SHAlloc( sizeof(LPCITEMIDLIST *) * node->cidl ); idlist = SHAlloc( sizeof(LPCITEMIDLIST *) * node->cidl );
for(i=0; i<node->cidl; i++) for(i=0; i<node->cidl; i++)
idlist[i] = (LPCITEMIDLIST)node->pidlSignaled; idlist[i] = node->pidlSignaled;
*lpwEventId = node->wSignalledEvent; *lpwEventId = node->wSignalledEvent;
*lppidls = (LPITEMIDLIST*)idlist; *lppidls = (LPITEMIDLIST*)idlist;
node->wSignalledEvent = 0; node->wSignalledEvent = 0;
......
...@@ -288,7 +288,7 @@ static PIDLCPanelStruct* _ILGetCPanelPointer(LPCITEMIDLIST pidl) ...@@ -288,7 +288,7 @@ static PIDLCPanelStruct* _ILGetCPanelPointer(LPCITEMIDLIST pidl)
LPPIDLDATA pdata = _ILGetDataPointer(pidl); LPPIDLDATA pdata = _ILGetDataPointer(pidl);
if (pdata && pdata->type==PT_CPLAPPLET) if (pdata && pdata->type==PT_CPLAPPLET)
return (PIDLCPanelStruct*)&(pdata->u.cpanel); return &pdata->u.cpanel;
return NULL; return NULL;
} }
...@@ -436,14 +436,14 @@ static BOOL CreateCPanelEnumList( ...@@ -436,14 +436,14 @@ static BOOL CreateCPanelEnumList(
if (!(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { if (!(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
strcpy(p, wfd.cFileName); strcpy(p, wfd.cFileName);
SHELL_RegisterCPanelApp((IEnumIDList*)iface, szPath); SHELL_RegisterCPanelApp(iface, szPath);
} }
} while(FindNextFileA(hFile, &wfd)); } while(FindNextFileA(hFile, &wfd));
FindClose(hFile); FindClose(hFile);
} }
SHELL_RegisterRegistryCPanelApps((IEnumIDList*)iface, HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Control Panel\\Cpls"); SHELL_RegisterRegistryCPanelApps(iface, HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Control Panel\\Cpls");
SHELL_RegisterRegistryCPanelApps((IEnumIDList*)iface, HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Control Panel\\Cpls"); SHELL_RegisterRegistryCPanelApps(iface, HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Control Panel\\Cpls");
} }
return TRUE; return TRUE;
} }
......
...@@ -111,7 +111,7 @@ static HDDEDATA CALLBACK DdeCallback( ...@@ -111,7 +111,7 @@ static HDDEDATA CALLBACK DdeCallback(
case XTYP_WILDCONNECT: case XTYP_WILDCONNECT:
return (HDDEDATA)(DWORD_PTR)Dde_OnWildConnect(hsz1, hsz2); return (HDDEDATA)(DWORD_PTR)Dde_OnWildConnect(hsz1, hsz2);
case XTYP_REQUEST: case XTYP_REQUEST:
return (HDDEDATA)Dde_OnRequest(uFmt, hconv, hsz1, hsz2); return Dde_OnRequest(uFmt, hconv, hsz1, hsz2);
case XTYP_EXECUTE: case XTYP_EXECUTE:
return (HDDEDATA)(DWORD_PTR)Dde_OnExecute(hconv, hsz1, hdata); return (HDDEDATA)(DWORD_PTR)Dde_OnExecute(hconv, hsz1, hdata);
case XTYP_DISCONNECT: case XTYP_DISCONNECT:
......
...@@ -103,7 +103,7 @@ void WINAPI RunFileDlg( ...@@ -103,7 +103,7 @@ void WINAPI RunFileDlg(
MessageBoxA (hwndOwner, "Couldn't find dialog.", "Nix", MB_OK) ; MessageBoxA (hwndOwner, "Couldn't find dialog.", "Nix", MB_OK) ;
return; return;
} }
if(!(template = (LPVOID)LoadResource(shell32_hInstance, hRes))) if(!(template = LoadResource(shell32_hInstance, hRes)))
{ {
MessageBoxA (hwndOwner, "Couldn't load dialog.", "Nix", MB_OK) ; MessageBoxA (hwndOwner, "Couldn't load dialog.", "Nix", MB_OK) ;
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment