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
5021e919
Commit
5021e919
authored
Aug 20, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: 64-bit GetFontFileInfo may fail with error ERROR_NOACCESS.
parent
acbb0bdf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
font.c
dlls/gdi32/tests/font.c
+7
-2
No files found.
dlls/gdi32/tests/font.c
View file @
5021e919
...
...
@@ -4116,7 +4116,7 @@ static void test_RealizationInfo(void)
{
HDC
hdc
;
DWORD
info
[
4
],
info2
[
10
];
BOOL
r
;
BOOL
r
,
have_file
=
FALSE
;
HFONT
hfont
,
hfont_old
;
LOGFONTA
lf
;
DWORD
needed
,
read
;
...
...
@@ -4199,8 +4199,10 @@ static void test_RealizationInfo(void)
/* Test GetFontFileInfo() */
r
=
pGetFontFileInfo
(
info2
[
3
],
0
,
&
file_info
,
sizeof
(
file_info
),
&
needed
);
ok
(
r
!=
0
,
"ret 0 gle %d
\n
"
,
GetLastError
());
ok
(
r
!=
0
||
GetLastError
()
==
ERROR_NOACCESS
,
"ret %d gle %d
\n
"
,
r
,
GetLastError
());
if
(
r
)
{
h
=
CreateFileW
(
file_info
.
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
ok
(
h
!=
INVALID_HANDLE_VALUE
,
"Unable to open file %d
\n
"
,
GetLastError
());
...
...
@@ -4212,11 +4214,14 @@ static void test_RealizationInfo(void)
/* Read first 16 bytes from the file */
ReadFile
(
h
,
file
,
sizeof
(
file
),
&
read
,
NULL
);
CloseHandle
(
h
);
have_file
=
TRUE
;
}
/* Get bytes 2 - 16 using GetFontFileData */
r
=
pGetFontFileData
(
info2
[
3
],
0
,
2
,
data
,
sizeof
(
data
));
ok
(
r
!=
0
,
"ret 0 gle %d
\n
"
,
GetLastError
());
if
(
have_file
)
ok
(
!
memcmp
(
data
,
file
+
2
,
sizeof
(
data
)),
"mismatch
\n
"
);
}
...
...
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