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
67389533
Commit
67389533
authored
Mar 28, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Get the CreateTextServices() pointer only once.
parent
74c5d202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
txtsrv.c
dlls/riched20/tests/txtsrv.c
+3
-2
No files found.
dlls/riched20/tests/txtsrv.c
View file @
67389533
...
@@ -38,6 +38,7 @@ static HMODULE hmoduleRichEdit;
...
@@ -38,6 +38,7 @@ static HMODULE hmoduleRichEdit;
static
IID
*
pIID_ITextServices
;
static
IID
*
pIID_ITextServices
;
static
IID
*
pIID_ITextHost
;
static
IID
*
pIID_ITextHost
;
static
IID
*
pIID_ITextHost2
;
static
IID
*
pIID_ITextHost2
;
static
PCreateTextServices
pCreateTextServices
;
static
const
char
*
debugstr_guid
(
REFIID
riid
)
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
{
...
@@ -620,7 +621,6 @@ static BOOL init_texthost(void)
...
@@ -620,7 +621,6 @@ static BOOL init_texthost(void)
{
{
IUnknown
*
init
;
IUnknown
*
init
;
HRESULT
result
;
HRESULT
result
;
PCreateTextServices
pCreateTextServices
;
dummyTextHost
=
CoTaskMemAlloc
(
sizeof
(
*
dummyTextHost
));
dummyTextHost
=
CoTaskMemAlloc
(
sizeof
(
*
dummyTextHost
));
if
(
dummyTextHost
==
NULL
)
{
if
(
dummyTextHost
==
NULL
)
{
...
@@ -633,7 +633,6 @@ static BOOL init_texthost(void)
...
@@ -633,7 +633,6 @@ static BOOL init_texthost(void)
/* MSDN states that an IUnknown object is returned by
/* MSDN states that an IUnknown object is returned by
CreateTextServices which is then queried to obtain a
CreateTextServices which is then queried to obtain a
ITextServices object. */
ITextServices object. */
pCreateTextServices
=
(
void
*
)
GetProcAddress
(
hmoduleRichEdit
,
"CreateTextServices"
);
result
=
(
*
pCreateTextServices
)(
NULL
,
&
dummyTextHost
->
ITextHost_iface
,
&
init
);
result
=
(
*
pCreateTextServices
)(
NULL
,
&
dummyTextHost
->
ITextHost_iface
,
&
init
);
ok
(
result
==
S_OK
,
"Did not return S_OK when created (result = %x)
\n
"
,
result
);
ok
(
result
==
S_OK
,
"Did not return S_OK when created (result = %x)
\n
"
,
result
);
if
(
result
!=
S_OK
)
{
if
(
result
!=
S_OK
)
{
...
@@ -825,6 +824,8 @@ START_TEST( txtsrv )
...
@@ -825,6 +824,8 @@ START_TEST( txtsrv )
pIID_ITextServices
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextServices"
);
pIID_ITextServices
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextServices"
);
pIID_ITextHost
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextHost"
);
pIID_ITextHost
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextHost"
);
pIID_ITextHost2
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextHost2"
);
pIID_ITextHost2
=
(
IID
*
)
GetProcAddress
(
hmoduleRichEdit
,
"IID_ITextHost2"
);
pCreateTextServices
=
(
void
*
)
GetProcAddress
(
hmoduleRichEdit
,
"CreateTextServices"
);
test_IIDs
();
test_IIDs
();
if
(
init_texthost
())
if
(
init_texthost
())
...
...
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