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
4d28aeda
Commit
4d28aeda
authored
Aug 09, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid TRUE:FALSE conditional expressions.
parent
abef6ab3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
setupcab.c
dlls/setupapi/setupcab.c
+3
-5
No files found.
dlls/setupapi/setupcab.c
View file @
4d28aeda
...
...
@@ -194,7 +194,7 @@ static INT_PTR CDECL sc_cb_open(char *pszFile, int oflag, int pmode)
sa
.
nLength
=
sizeof
(
SECURITY_ATTRIBUTES
);
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
(
ioflag
&
_O_NOINHERIT
)
?
FALSE
:
TRUE
;
sa
.
bInheritHandle
=
!
(
ioflag
&
_O_NOINHERIT
)
;
ret
=
(
INT_PTR
)
CreateFileA
(
pszFile
,
ioflag
,
sharing
,
&
sa
,
creation
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
@@ -604,8 +604,7 @@ BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
if
(
!
my_hsc
.
hfdi
)
return
FALSE
;
ret
=
(
sc_FDICopy
(
my_hsc
.
hfdi
,
pszCabinet
,
pszCabPath
,
0
,
sc_FNNOTIFY_A
,
NULL
,
&
my_hsc
)
)
?
TRUE
:
FALSE
;
ret
=
sc_FDICopy
(
my_hsc
.
hfdi
,
pszCabinet
,
pszCabPath
,
0
,
sc_FNNOTIFY_A
,
NULL
,
&
my_hsc
);
sc_FDIDestroy
(
my_hsc
.
hfdi
);
return
ret
;
...
...
@@ -670,8 +669,7 @@ BOOL WINAPI SetupIterateCabinetW(PCWSTR CabinetFile, DWORD Reserved,
if
(
!
my_hsc
.
hfdi
)
return
FALSE
;
ret
=
(
sc_FDICopy
(
my_hsc
.
hfdi
,
pszCabinet
,
pszCabPath
,
0
,
sc_FNNOTIFY_W
,
NULL
,
&
my_hsc
)
)
?
TRUE
:
FALSE
;
ret
=
sc_FDICopy
(
my_hsc
.
hfdi
,
pszCabinet
,
pszCabPath
,
0
,
sc_FNNOTIFY_W
,
NULL
,
&
my_hsc
);
sc_FDIDestroy
(
my_hsc
.
hfdi
);
return
ret
;
...
...
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