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
d419f243
Commit
d419f243
authored
Nov 10, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove broken check for WinXP.
parent
7a354177
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
53 deletions
+46
-53
font.c
dlls/gdi32/tests/font.c
+46
-53
No files found.
dlls/gdi32/tests/font.c
View file @
d419f243
...
...
@@ -3185,8 +3185,6 @@ static void test_AddFontMemResource(void)
void
*
font
;
DWORD
font_size
,
num_fonts
;
HANDLE
ret
;
DEVMODEA
dmA
;
BOOL
is_winxp
;
if
(
!
pAddFontMemResourceEx
||
!
pRemoveFontMemResourceEx
)
{
...
...
@@ -3201,62 +3199,59 @@ static void test_AddFontMemResource(void)
return
;
}
is_winxp
=
EnumDisplaySettingsA
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
dmA
)
&&
(
dmA
.
dmFields
&
DM_DISPLAYORIENTATION
);
if
(
is_winxp
)
{
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
10
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
10
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
0
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
0
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
10
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
NULL
,
10
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
0
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
0
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
10
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
10
,
NULL
,
NULL
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
num_fonts
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
0
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
ok
(
num_fonts
==
0xdeadbeef
,
"number of loaded fonts should be 0xdeadbeef
\n
"
);
num_fonts
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
0
,
NULL
,
&
num_fonts
);
ok
(
!
ret
,
"AddFontMemResourceEx should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected GetLastError() to return ERROR_INVALID_PARAMETER, got %u
\n
"
,
GetLastError
());
ok
(
num_fonts
==
0xdeadbeef
,
"number of loaded fonts should be 0xdeadbeef
\n
"
);
if
(
0
)
/* hangs under windows 2000 */
{
num_fonts
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
pAddFontMemResourceEx
(
font
,
10
,
NULL
,
&
num_fonts
);
...
...
@@ -3266,8 +3261,6 @@ static void test_AddFontMemResource(void)
GetLastError
());
ok
(
num_fonts
==
0xdeadbeef
,
"number of loaded fonts should be 0xdeadbeef
\n
"
);
}
else
win_skip
(
"AddFontMemResourceEx invalid parameter tests are problematic on Win2k
\n
"
);
num_fonts
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
...
...
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