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
2a11f2df
Commit
2a11f2df
authored
May 19, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Use FAILED instead of !SUCCEDED.
parent
b49d541c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
context.c
dlls/msctf/context.c
+1
-1
inputprocessor.c
dlls/msctf/inputprocessor.c
+1
-1
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+2
-2
threadmgr.c
dlls/msctf/threadmgr.c
+1
-1
No files found.
dlls/msctf/context.c
View file @
2a11f2df
...
@@ -430,7 +430,7 @@ static WINAPI HRESULT ContextSource_AdviseSink(ITfSource *iface,
...
@@ -430,7 +430,7 @@ static WINAPI HRESULT ContextSource_AdviseSink(ITfSource *iface,
es
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ContextSink
));
es
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ContextSink
));
if
(
!
es
)
if
(
!
es
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
!
SUCCEEDED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
es
->
interfaces
.
pITfTextEditSink
)))
if
(
FAILED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
es
->
interfaces
.
pITfTextEditSink
)))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
es
);
HeapFree
(
GetProcessHeap
(),
0
,
es
);
return
CONNECT_E_CANNOTCONNECT
;
return
CONNECT_E_CANNOTCONNECT
;
...
...
dlls/msctf/inputprocessor.c
View file @
2a11f2df
...
@@ -615,7 +615,7 @@ static WINAPI HRESULT IPPSource_AdviseSink(ITfSource *iface,
...
@@ -615,7 +615,7 @@ static WINAPI HRESULT IPPSource_AdviseSink(ITfSource *iface,
ipps
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
InputProcessorProfilesSink
));
ipps
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
InputProcessorProfilesSink
));
if
(
!
ipps
)
if
(
!
ipps
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
!
SUCCEEDED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
ipps
->
interfaces
.
pITfLanguageProfileNotifySink
)))
if
(
FAILED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
ipps
->
interfaces
.
pITfLanguageProfileNotifySink
)))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
ipps
);
HeapFree
(
GetProcessHeap
(),
0
,
ipps
);
return
CONNECT_E_CANNOTCONNECT
;
return
CONNECT_E_CANNOTCONNECT
;
...
...
dlls/msctf/tests/inputprocessor.c
View file @
2a11f2df
...
@@ -1186,7 +1186,7 @@ static void test_startSession(void)
...
@@ -1186,7 +1186,7 @@ static void test_startSession(void)
cnt
=
check_context_refcount
(
cxt3
);
cnt
=
check_context_refcount
(
cxt3
);
hr
=
ITfDocumentMgr_Push
(
g_dm
,
cxt3
);
hr
=
ITfDocumentMgr_Push
(
g_dm
,
cxt3
);
ok
(
!
SUCCEED
ED
(
hr
),
"Push Succeeded
\n
"
);
ok
(
FAIL
ED
(
hr
),
"Push Succeeded
\n
"
);
ok
(
check_context_refcount
(
cxt3
)
==
cnt
,
"Ref changed
\n
"
);
ok
(
check_context_refcount
(
cxt3
)
==
cnt
,
"Ref changed
\n
"
);
cnt
=
check_context_refcount
(
cxt2
);
cnt
=
check_context_refcount
(
cxt2
);
...
@@ -1221,7 +1221,7 @@ static void test_startSession(void)
...
@@ -1221,7 +1221,7 @@ static void test_startSession(void)
ITfContext_Release
(
cxtTest
);
ITfContext_Release
(
cxtTest
);
hr
=
ITfDocumentMgr_Pop
(
g_dm
,
0
);
hr
=
ITfDocumentMgr_Pop
(
g_dm
,
0
);
ok
(
!
SUCCEED
ED
(
hr
),
"Pop Succeeded
\n
"
);
ok
(
FAIL
ED
(
hr
),
"Pop Succeeded
\n
"
);
hr
=
ITfDocumentMgr_GetTop
(
g_dm
,
&
cxtTest
);
hr
=
ITfDocumentMgr_GetTop
(
g_dm
,
&
cxtTest
);
ok
(
SUCCEEDED
(
hr
),
"GetTop Failed
\n
"
);
ok
(
SUCCEEDED
(
hr
),
"GetTop Failed
\n
"
);
...
...
dlls/msctf/threadmgr.c
View file @
2a11f2df
...
@@ -442,7 +442,7 @@ static WINAPI HRESULT ThreadMgrSource_AdviseSink(ITfSource *iface,
...
@@ -442,7 +442,7 @@ static WINAPI HRESULT ThreadMgrSource_AdviseSink(ITfSource *iface,
tms
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ThreadMgrSink
));
tms
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ThreadMgrSink
));
if
(
!
tms
)
if
(
!
tms
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
!
SUCCEEDED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
tms
->
interfaces
.
pITfThreadMgrEventSink
)))
if
(
FAILED
(
IUnknown_QueryInterface
(
punk
,
riid
,
(
LPVOID
*
)
&
tms
->
interfaces
.
pITfThreadMgrEventSink
)))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
tms
);
HeapFree
(
GetProcessHeap
(),
0
,
tms
);
return
CONNECT_E_CANNOTCONNECT
;
return
CONNECT_E_CANNOTCONNECT
;
...
...
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