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
8992e208
Commit
8992e208
authored
Apr 25, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Initialize HRESULT variables consistently.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77632af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
async.c
dlls/windows.media.speech/async.c
+3
-10
No files found.
dlls/windows.media.speech/async.c
View file @
8992e208
...
...
@@ -176,16 +176,13 @@ static HRESULT WINAPI async_operation_get_Completed( IAsyncOperation_IInspectabl
IAsyncOperationCompletedHandler_IInspectable
**
handler
)
{
struct
async_operation
*
impl
=
impl_from_IAsyncOperation_IInspectable
(
iface
);
HRESULT
hr
;
HRESULT
hr
=
S_OK
;
FIXME
(
"iface %p, handler %p semi stub!
\n
"
,
iface
,
handler
);
EnterCriticalSection
(
&
impl
->
cs
);
if
(
impl
->
status
==
Closed
)
hr
=
E_ILLEGAL_METHOD_CALL
;
else
hr
=
S_OK
;
*
handler
=
(
impl
->
handler
!=
HANDLER_NOT_SET
)
?
impl
->
handler
:
NULL
;
LeaveCriticalSection
(
&
impl
->
cs
);
...
...
@@ -249,16 +246,13 @@ static HRESULT WINAPI async_operation_info_get_Id( IAsyncInfo *iface, UINT32 *id
static
HRESULT
WINAPI
async_operation_info_get_Status
(
IAsyncInfo
*
iface
,
AsyncStatus
*
status
)
{
struct
async_operation
*
impl
=
impl_from_IAsyncInfo
(
iface
);
HRESULT
hr
;
HRESULT
hr
=
S_OK
;
TRACE
(
"iface %p, status %p.
\n
"
,
iface
,
status
);
EnterCriticalSection
(
&
impl
->
cs
);
if
(
impl
->
status
==
Closed
)
hr
=
E_ILLEGAL_METHOD_CALL
;
else
hr
=
S_OK
;
*
status
=
impl
->
status
;
LeaveCriticalSection
(
&
impl
->
cs
);
...
...
@@ -285,10 +279,9 @@ static HRESULT WINAPI async_operation_info_get_ErrorCode( IAsyncInfo *iface, HRE
static
HRESULT
WINAPI
async_operation_info_Cancel
(
IAsyncInfo
*
iface
)
{
struct
async_operation
*
impl
=
impl_from_IAsyncInfo
(
iface
);
HRESULT
hr
;
HRESULT
hr
=
S_OK
;
TRACE
(
"iface %p.
\n
"
,
iface
);
hr
=
S_OK
;
EnterCriticalSection
(
&
impl
->
cs
);
if
(
impl
->
status
==
Closed
)
...
...
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