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
186528e2
Commit
186528e2
authored
Aug 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Use the global wine_dbgstr_w instead of a local variant.
parent
825487b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
font.c
dlls/gdiplus/tests/font.c
+4
-12
No files found.
dlls/gdiplus/tests/font.c
View file @
186528e2
...
...
@@ -31,14 +31,6 @@ static const WCHAR MicrosoftSansSerif[] = {'M','i','c','r','o','s','o','f','t','
static
const
WCHAR
TimesNewRoman
[]
=
{
'T'
,
'i'
,
'm'
,
'e'
,
's'
,
' '
,
'N'
,
'e'
,
'w'
,
' '
,
'R'
,
'o'
,
'm'
,
'a'
,
'n'
,
'\0'
};
static
const
WCHAR
CourierNew
[]
=
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
' '
,
'N'
,
'e'
,
'w'
,
'\0'
};
static
const
char
*
debugstr_w
(
LPCWSTR
str
)
{
static
char
buf
[
1024
];
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
buf
;
}
static
void
test_createfont
(
void
)
{
GpFontFamily
*
fontfamily
=
NULL
,
*
fontfamily2
;
...
...
@@ -71,7 +63,7 @@ static void test_createfont(void)
stat
=
GdipGetFamilyName
(
fontfamily2
,
familyname
,
0
);
expect
(
Ok
,
stat
);
ok
(
lstrcmpiW
(
arial
,
familyname
)
==
0
,
"Expected arial, got %s
\n
"
,
debu
gstr_w
(
familyname
));
wine_db
gstr_w
(
familyname
));
stat
=
GdipDeleteFontFamily
(
fontfamily2
);
expect
(
Ok
,
stat
);
...
...
@@ -305,7 +297,7 @@ static void test_getgenerics (void)
ok
((
lstrcmpiW
(
familyName
,
MicrosoftSansSerif
)
==
0
)
||
(
lstrcmpiW
(
familyName
,
MSSansSerif
)
==
0
),
"Expected Microsoft Sans Serif or MS Sans Serif, got %s
\n
"
,
debu
gstr_w
(
familyName
));
wine_db
gstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
...
...
@@ -320,7 +312,7 @@ serif:
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
ok
(
lstrcmpiW
(
familyName
,
TimesNewRoman
)
==
0
,
"Expected Times New Roman, got %s
\n
"
,
debu
gstr_w
(
familyName
));
"Expected Times New Roman, got %s
\n
"
,
wine_db
gstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
...
...
@@ -335,7 +327,7 @@ monospace:
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
ok
(
lstrcmpiW
(
familyName
,
CourierNew
)
==
0
,
"Expected Courier New, got %s
\n
"
,
debu
gstr_w
(
familyName
));
"Expected Courier New, got %s
\n
"
,
wine_db
gstr_w
(
familyName
));
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
}
...
...
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