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
86a30afe
Commit
86a30afe
authored
Oct 25, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Fix txtsrv tests compilation with __WINESRC__ defined.
parent
27fb6262
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile.in
dlls/riched20/tests/Makefile.in
+0
-1
txtsrv.c
dlls/riched20/tests/txtsrv.c
+4
-3
No files found.
dlls/riched20/tests/Makefile.in
View file @
86a30afe
TESTDLL
=
riched20.dll
TESTDLL
=
riched20.dll
IMPORTS
=
ole32 oleaut32 user32 gdi32
IMPORTS
=
ole32 oleaut32 user32 gdi32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
C_SRCS
=
\
editor.c
\
editor.c
\
...
...
dlls/riched20/tests/txtsrv.c
View file @
86a30afe
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <objbase.h>
#include <objbase.h>
#include <richedit.h>
#include <richedit.h>
#include <initguid.h>
#include <initguid.h>
#include <imm.h>
#include <textserv.h>
#include <textserv.h>
#include <wine/test.h>
#include <wine/test.h>
#include <oleauto.h>
#include <oleauto.h>
...
@@ -720,7 +721,7 @@ static void test_TxGetNaturalSize(void) {
...
@@ -720,7 +721,7 @@ static void test_TxGetNaturalSize(void) {
/* Variables with the text metric information */
/* Variables with the text metric information */
INT
charwidth_caps_text
[
26
];
INT
charwidth_caps_text
[
26
];
TEXTMETRIC
tmInfo_text
;
TEXTMETRIC
A
tmInfo_text
;
if
(
!
init_texthost
())
if
(
!
init_texthost
())
return
;
return
;
...
@@ -730,9 +731,9 @@ static void test_TxGetNaturalSize(void) {
...
@@ -730,9 +731,9 @@ static void test_TxGetNaturalSize(void) {
/* Populate the metric strucs */
/* Populate the metric strucs */
SetMapMode
(
hdcDraw
,
MM_TEXT
);
SetMapMode
(
hdcDraw
,
MM_TEXT
);
GetTextMetrics
(
hdcDraw
,
&
tmInfo_text
);
GetTextMetrics
A
(
hdcDraw
,
&
tmInfo_text
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
GetCharWidth32
(
hdcDraw
,
'A'
,
'Z'
,
charwidth_caps_text
);
ret
=
GetCharWidth32
A
(
hdcDraw
,
'A'
,
'Z'
,
charwidth_caps_text
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
!
ret
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetCharWidth32 is not available
\n
"
);
win_skip
(
"GetCharWidth32 is not available
\n
"
);
goto
cleanup
;
goto
cleanup
;
...
...
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