Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0409b989
Commit
0409b989
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Aoid TRUE:FALSE conditional expressions.
parent
47e472af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
file.c
dlls/msvcrt/file.c
+2
-2
wcs.c
dlls/msvcrt/wcs.c
+1
-1
No files found.
dlls/msvcrt/file.c
View file @
0409b989
...
...
@@ -1771,7 +1771,7 @@ int CDECL MSVCRT__sopen_s( int *fd, const char *path, int oflags, int shflags, i
sa
.
nLength
=
sizeof
(
SECURITY_ATTRIBUTES
);
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
(
oflags
&
MSVCRT__O_NOINHERIT
)
?
FALSE
:
TRUE
;
sa
.
bInheritHandle
=
!
(
oflags
&
MSVCRT__O_NOINHERIT
)
;
hand
=
CreateFileA
(
path
,
access
,
sharing
,
&
sa
,
creation
,
attrib
,
0
);
if
(
hand
==
INVALID_HANDLE_VALUE
)
{
...
...
@@ -1885,7 +1885,7 @@ int CDECL MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int
sa
.
nLength
=
sizeof
(
SECURITY_ATTRIBUTES
);
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
(
oflags
&
MSVCRT__O_NOINHERIT
)
?
FALSE
:
TRUE
;
sa
.
bInheritHandle
=
!
(
oflags
&
MSVCRT__O_NOINHERIT
)
;
hand
=
CreateFileW
(
path
,
access
,
sharing
,
&
sa
,
creation
,
attrib
,
0
);
...
...
dlls/msvcrt/wcs.c
View file @
0409b989
...
...
@@ -50,7 +50,7 @@ int CDECL MSVCRT__get_printf_count_output( void )
int
CDECL
MSVCRT__set_printf_count_output
(
int
enable
)
{
BOOL
old
=
n_format_enabled
;
n_format_enabled
=
(
enable
?
TRUE
:
FALSE
)
;
n_format_enabled
=
enable
!=
0
;
return
old
?
1
:
0
;
}
...
...
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