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
8c2a9414
Commit
8c2a9414
authored
Jan 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Cleanup return value handling in CoWaitForMultipleHandles.
parent
75801f09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
compobj.c
dlls/ole32/compobj.c
+7
-16
No files found.
dlls/ole32/compobj.c
View file @
8c2a9414
...
@@ -3646,28 +3646,19 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
...
@@ -3646,28 +3646,19 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
(
dwFlags
&
COWAIT_ALERTABLE
)
?
TRUE
:
FALSE
);
(
dwFlags
&
COWAIT_ALERTABLE
)
?
TRUE
:
FALSE
);
}
}
if
(
res
<
WAIT_OBJECT_0
+
cHandles
)
switch
(
res
)
{
/* handle signaled, store index */
*
lpdwindex
=
(
res
-
WAIT_OBJECT_0
);
break
;
}
else
if
(
res
==
WAIT_TIMEOUT
)
{
{
case
WAIT_TIMEOUT
:
hr
=
RPC_S_CALLPENDING
;
hr
=
RPC_S_CALLPENDING
;
break
;
break
;
}
case
WAIT_FAILED
:
else
if
(
res
==
WAIT_IO_COMPLETION
)
hr
=
HRESULT_FROM_WIN32
(
GetLastError
()
);
{
*
lpdwindex
=
WAIT_IO_COMPLETION
;
break
;
break
;
}
default:
else
*
lpdwindex
=
res
;
{
ERR
(
"Unexpected wait termination: %d, %d
\n
"
,
res
,
GetLastError
());
hr
=
E_UNEXPECTED
;
break
;
break
;
}
}
break
;
}
}
TRACE
(
"-- 0x%08x
\n
"
,
hr
);
TRACE
(
"-- 0x%08x
\n
"
,
hr
);
return
hr
;
return
hr
;
...
...
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