mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
comdlg32: Remove unnecessary casts.
This commit is contained in:
parent
a9491cf0cd
commit
750a56016d
@ -1346,7 +1346,7 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
|
||||
lpcc->lpCustColors = lpChCol->lpCustColors;
|
||||
lpcc->Flags = lpChCol->Flags;
|
||||
lpcc->lCustData = lpChCol->lCustData;
|
||||
lpcc->lpfnHook = (LPCCHOOKPROC) lpChCol->lpfnHook;
|
||||
lpcc->lpfnHook = lpChCol->lpfnHook;
|
||||
if ((lpcc->Flags & CC_ENABLETEMPLATE) && (lpChCol->lpTemplateName)) {
|
||||
if (HIWORD(lpChCol->lpTemplateName)) {
|
||||
INT len = MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, NULL, 0);
|
||||
|
@ -531,7 +531,7 @@ static LRESULT FD31_Validate( const FD31_DATA *lfs, LPCWSTR path, UINT control,
|
||||
FD31_UpdateFileTitle(lfs);
|
||||
if (lfs->hook)
|
||||
{
|
||||
lRet = (BOOL)FD31_CallWindowProc(lfs, lfs->fileokstring,
|
||||
lRet = FD31_CallWindowProc(lfs, lfs->fileokstring,
|
||||
0, lfs->lParam );
|
||||
if (lRet)
|
||||
{
|
||||
@ -543,7 +543,7 @@ static LRESULT FD31_Validate( const FD31_DATA *lfs, LPCWSTR path, UINT control,
|
||||
{
|
||||
if (ofnW->lpstrFile)
|
||||
{
|
||||
LPWSTR str = (LPWSTR)ofnW->lpstrFile;
|
||||
LPWSTR str = ofnW->lpstrFile;
|
||||
LPWSTR ptr = strrchrW(str, '\\');
|
||||
str[lstrlenW(str) + 1] = '\0';
|
||||
*ptr = 0;
|
||||
@ -919,7 +919,7 @@ LONG FD31_WMInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
if (ofn->Flags & OFN_HIDEREADONLY)
|
||||
ShowWindow(GetDlgItem(hWnd, chx1), SW_HIDE);
|
||||
if (lfs->hook)
|
||||
return (BOOL) FD31_CallWindowProc(lfs, WM_INITDIALOG, wParam, lfs->lParam);
|
||||
return FD31_CallWindowProc(lfs, WM_INITDIALOG, wParam, lfs->lParam);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -375,8 +375,7 @@ static HRESULT WINAPI IShellBrowserImpl_BrowseObject(IShellBrowser *iface,
|
||||
return hRes;
|
||||
}
|
||||
/* create an absolute pidl */
|
||||
pidlTmp = COMDLG32_PIDL_ILCombine(fodInfos->ShellInfos.pidlAbsCurrent,
|
||||
(LPCITEMIDLIST)pidl);
|
||||
pidlTmp = COMDLG32_PIDL_ILCombine(fodInfos->ShellInfos.pidlAbsCurrent, pidl);
|
||||
}
|
||||
else if(wFlags & SBSP_PARENT)
|
||||
{
|
||||
@ -388,7 +387,7 @@ static HRESULT WINAPI IShellBrowserImpl_BrowseObject(IShellBrowser *iface,
|
||||
else /* SBSP_ABSOLUTE is 0x0000 */
|
||||
{
|
||||
/* An absolute pidl (relative from the desktop) */
|
||||
pidlTmp = COMDLG32_PIDL_ILClone((LPCITEMIDLIST)pidl);
|
||||
pidlTmp = COMDLG32_PIDL_ILClone(pidl);
|
||||
psfTmp = GetShellFolderFromPidl(pidlTmp);
|
||||
}
|
||||
|
||||
|
@ -3069,12 +3069,12 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
scalx = rcClient.right / (double)pda->curdlg.ptPaperSize.x;
|
||||
scaly = rcClient.bottom / (double)pda->curdlg.ptPaperSize.y;
|
||||
rcMargin = rcClient;
|
||||
|
||||
rcMargin.left += (LONG)pda->curdlg.rtMargin.left * scalx;
|
||||
rcMargin.top += (LONG)pda->curdlg.rtMargin.top * scalx;
|
||||
rcMargin.right -= (LONG)pda->curdlg.rtMargin.right * scaly;
|
||||
rcMargin.bottom -= (LONG)pda->curdlg.rtMargin.bottom * scaly;
|
||||
|
||||
|
||||
rcMargin.left += pda->curdlg.rtMargin.left * scalx;
|
||||
rcMargin.top += pda->curdlg.rtMargin.top * scalx;
|
||||
rcMargin.right -= pda->curdlg.rtMargin.right * scaly;
|
||||
rcMargin.bottom -= pda->curdlg.rtMargin.bottom * scaly;
|
||||
|
||||
/* if the space is too small then we make sure to not draw anything */
|
||||
rcMargin.left = min(rcMargin.left, rcMargin.right);
|
||||
rcMargin.top = min(rcMargin.top, rcMargin.bottom);
|
||||
|
Loading…
Reference in New Issue
Block a user