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
43ae8463
Commit
43ae8463
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Avoid TRUE:FALSE conditional expressions.
parent
794ad909
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
compobj.c
dlls/ole32/compobj.c
+2
-3
defaulthandler.c
dlls/ole32/defaulthandler.c
+1
-1
ole2.c
dlls/ole32/ole2.c
+2
-2
clipboard.c
dlls/ole32/tests/clipboard.c
+1
-1
compobj.c
dlls/ole32/tests/compobj.c
+1
-1
No files found.
dlls/ole32/compobj.c
View file @
43ae8463
...
...
@@ -3769,10 +3769,9 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
{
TRACE
(
"waiting for rpc completion
\n
"
);
res
=
WaitForMultipleObjectsEx
(
cHandles
,
pHandles
,
(
dwFlags
&
COWAIT_WAITALL
)
?
TRUE
:
FALSE
,
res
=
WaitForMultipleObjectsEx
(
cHandles
,
pHandles
,
(
dwFlags
&
COWAIT_WAITALL
)
!=
0
,
(
dwTimeout
==
INFINITE
)
?
INFINITE
:
start_time
+
dwTimeout
-
now
,
(
dwFlags
&
COWAIT_ALERTABLE
)
?
TRUE
:
FALSE
);
(
dwFlags
&
COWAIT_ALERTABLE
)
!=
0
);
}
switch
(
res
)
...
...
dlls/ole32/defaulthandler.c
View file @
43ae8463
...
...
@@ -1899,7 +1899,7 @@ static DefaultHandler* DefaultHandler_Construct(
This
->
IAdviseSink_iface
.
lpVtbl
=
&
DefaultHandler_IAdviseSink_VTable
;
This
->
IPersistStorage_iface
.
lpVtbl
=
&
DefaultHandler_IPersistStorage_VTable
;
This
->
inproc_server
=
(
flags
&
EMBDHLP_INPROC_SERVER
)
?
TRUE
:
FALSE
;
This
->
inproc_server
=
(
flags
&
EMBDHLP_INPROC_SERVER
)
!=
0
;
/*
* Start with one reference count. The caller of this function
...
...
dlls/ole32/ole2.c
View file @
43ae8463
...
...
@@ -290,7 +290,7 @@ static inline HANDLE get_droptarget_handle(HWND hwnd)
*/
static
inline
BOOL
is_droptarget
(
HWND
hwnd
)
{
return
get_droptarget_handle
(
hwnd
)
?
TRUE
:
FALSE
;
return
get_droptarget_handle
(
hwnd
)
!=
0
;
}
/*************************************************************
...
...
@@ -1660,7 +1660,7 @@ static BOOL OLEMenu_SetIsServerMenu( HMENU hmenu, OleMenuDescriptor *pOleMenuDes
if
(
nPos
<
nWidth
)
{
/* Odd elements are server menu widths */
pOleMenuDescriptor
->
bIsServerItem
=
(
i
%
2
)
?
TRUE
:
FALSE
;
pOleMenuDescriptor
->
bIsServerItem
=
i
%
2
;
break
;
}
}
...
...
dlls/ole32/tests/clipboard.c
View file @
43ae8463
...
...
@@ -740,7 +740,7 @@ static void test_cf_dataobject(IDataObject *data)
break
;
}
cfs_seen
[
count
]
=
fmt
.
cfFormat
;
ok
(
fmt_ptr
->
first_use_of_cf
==
seen_cf
?
FALSE
:
TRUE
,
"got %08x expected %08x
\n
"
,
ok
(
fmt_ptr
->
first_use_of_cf
!=
seen_cf
,
"got %08x expected %08x
\n
"
,
fmt_ptr
->
first_use_of_cf
,
!
seen_cf
);
ok
(
fmt_ptr
->
res
[
0
]
==
0
,
"got %08x
\n
"
,
fmt_ptr
->
res
[
1
]);
ok
(
fmt_ptr
->
res
[
1
]
==
0
,
"got %08x
\n
"
,
fmt_ptr
->
res
[
2
]);
...
...
dlls/ole32/tests/compobj.c
View file @
43ae8463
...
...
@@ -1110,7 +1110,7 @@ static DWORD CALLBACK free_libraries_thread(LPVOID p)
static
inline
BOOL
is_module_loaded
(
const
char
*
module
)
{
return
GetModuleHandle
(
module
)
?
TRUE
:
FALSE
;
return
GetModuleHandle
(
module
)
!=
0
;
}
static
void
test_CoFreeUnusedLibraries
(
void
)
...
...
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