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
df158e43
Commit
df158e43
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Avoid TRUE:FALSE conditional expressions.
parent
175eaf10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
filedlg31.c
dlls/comdlg32/filedlg31.c
+1
-1
printdlg.c
dlls/comdlg32/printdlg.c
+2
-2
No files found.
dlls/comdlg32/filedlg31.c
View file @
df158e43
...
...
@@ -492,7 +492,7 @@ static LRESULT FD31_TestPath( const FD31_DATA *lfs, LPWSTR path )
TRACE
(
"path=%s, tmpstr2=%s
\n
"
,
debugstr_w
(
path
),
debugstr_w
(
tmpstr2
));
SetDlgItemTextW
(
hWnd
,
edt1
,
tmpstr2
);
FD31_ScanDir
(
lfs
->
ofnW
,
hWnd
,
path
);
return
(
lfs
->
ofnW
->
Flags
&
OFN_NOVALIDATE
)
?
TRUE
:
FALSE
;
return
(
lfs
->
ofnW
->
Flags
&
OFN_NOVALIDATE
)
!=
0
;
}
/* no wildcards, we might have a directory or a filename */
...
...
dlls/comdlg32/printdlg.c
View file @
df158e43
...
...
@@ -2190,7 +2190,7 @@ static BOOL PRINTDLG_CreateDCA(LPPRINTDLGA lppd)
}
GlobalUnlock
(
lppd
->
hDevNames
);
GlobalUnlock
(
lppd
->
hDevMode
);
return
lppd
->
hDC
?
TRUE
:
FALSE
;
return
lppd
->
hDC
!=
NULL
;
}
static
BOOL
PRINTDLG_CreateDCW
(
LPPRINTDLGW
lppd
)
...
...
@@ -2211,7 +2211,7 @@ static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
}
GlobalUnlock
(
lppd
->
hDevNames
);
GlobalUnlock
(
lppd
->
hDevMode
);
return
lppd
->
hDC
?
TRUE
:
FALSE
;
return
lppd
->
hDC
!=
NULL
;
}
/***********************************************************************
...
...
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