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
0ebf3222
Commit
0ebf3222
authored
Mar 01, 2023
by
Florian Will
Committed by
Alexandre Julliard
Mar 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Test for GdipPrivateAddFontFile() sharing violation.
parent
0e85ac17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
font.c
dlls/gdiplus/tests/font.c
+13
-1
No files found.
dlls/gdiplus/tests/font.c
View file @
0ebf3222
...
...
@@ -76,6 +76,7 @@ static void test_long_name(void)
WCHAR
path
[
MAX_PATH
];
GpStatus
stat
;
GpFontCollection
*
fonts
;
HANDLE
file
;
INT
num_families
;
GpFontFamily
*
family
,
*
cloned_family
;
WCHAR
family_name
[
LF_FACESIZE
];
...
...
@@ -86,8 +87,19 @@ static void test_long_name(void)
create_testfontfile
(
L"wine_longname.ttf"
,
1
,
path
);
file
=
CreateFileW
(
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"CreateFileW failed: %ld
\n
"
,
GetLastError
());
stat
=
GdipPrivateAddFontFile
(
fonts
,
path
);
ok
(
stat
==
Ok
,
"GdipPrivateAddFontFile failed: %d
\n
"
,
stat
);
todo_wine
ok
(
stat
==
Ok
,
"GdipPrivateAddFontFile failed with open file handle: %d
\n
"
,
stat
);
CloseHandle
(
file
);
if
(
stat
!=
Ok
)
{
/* try again without opened file handle */
stat
=
GdipPrivateAddFontFile
(
fonts
,
path
);
ok
(
stat
==
Ok
,
"GdipPrivateAddFontFile failed: %d
\n
"
,
stat
);
}
stat
=
GdipGetFontCollectionFamilyCount
(
fonts
,
&
num_families
);
ok
(
stat
==
Ok
,
"GdipGetFontCollectionFamilyCount failed: %d
\n
"
,
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