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
029bac07
Commit
029bac07
authored
Jul 09, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Jul 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Remove DrawTextEx tests that overrun stack variable.
Fixes regression introduced by
35c8f15b
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55215
parent
54e38a95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
text.c
dlls/user32/tests/text.c
+0
-9
No files found.
dlls/user32/tests/text.c
View file @
029bac07
...
...
@@ -521,10 +521,6 @@ static void test_DrawTextCalcRect(void)
}
/* When passing invalid DC, other parameters must be ignored - no crashes on invalid pointers */
SetLastError
(
0xdeadbeef
);
textheight
=
DrawTextExW
((
HDC
)
0xdeadbeef
,
emptystringW
,
100000
,
(
LPRECT
)
0xdeadbeef
,
0
,
0
);
ok
(
textheight
==
0
,
"Got textheight from DrawTextExW
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Got error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
textheight
=
DrawTextExW
((
HDC
)
0xdeadbeef
,
(
LPWSTR
)
0xdeadbeef
,
100000
,
&
rect
,
0
,
0
);
...
...
@@ -537,11 +533,6 @@ static void test_DrawTextCalcRect(void)
ok
(
GetLastError
()
==
0xdeadbeef
,
"Got error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
textheight
=
DrawTextExA
((
HDC
)
0xdeadbeef
,
emptystring
,
100000
,
(
LPRECT
)
0xdeadbeef
,
0
,
0
);
ok
(
textheight
==
0
,
"Got textheight from DrawTextExA
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Got error %lu
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
textheight
=
DrawTextExA
((
HDC
)
0xdeadbeef
,
0
,
-
1
,
(
LPRECT
)
0xdeadbeef
,
DT_CALCRECT
,
0
);
ok
(
textheight
==
0
,
"Got textheight from DrawTextExA
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Got error %lu
\n
"
,
GetLastError
());
...
...
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