Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
750a5601
Commit
750a5601
authored
Dec 03, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Remove unnecessary casts.
parent
a9491cf0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
colordlg.c
dlls/comdlg32/colordlg.c
+1
-1
filedlg31.c
dlls/comdlg32/filedlg31.c
+3
-3
filedlgbrowser.c
dlls/comdlg32/filedlgbrowser.c
+2
-3
printdlg.c
dlls/comdlg32/printdlg.c
+6
-6
No files found.
dlls/comdlg32/colordlg.c
View file @
750a5601
...
...
@@ -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
);
...
...
dlls/comdlg32/filedlg31.c
View file @
750a5601
...
...
@@ -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
;
}
...
...
dlls/comdlg32/filedlgbrowser.c
View file @
750a5601
...
...
@@ -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
);
}
...
...
dlls/comdlg32/printdlg.c
View file @
750a5601
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment