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
0ab411a0
Commit
0ab411a0
authored
Jan 15, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix cursoricon tests on recent Windows versions.
This will now fail on older, unsupported versions, but the test_monochrome_icon test would be pointless otherwise.
parent
edc41d6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
cursoricon.c
dlls/user32/tests/cursoricon.c
+7
-8
No files found.
dlls/user32/tests/cursoricon.c
View file @
0ab411a0
...
...
@@ -1115,11 +1115,10 @@ static unsigned char bmpimage[70] = {
0xFF
,
0xFF
,
0x00
,
0x00
,
0x00
,
0x00
};
/* 1x1 pixel bmp using BITMAPCOREHEADER */
/* 1x1 pixel bmp using BITMAPCOREHEADER
with 24 bits colors (1 bit color fails to load)
*/
static
const
unsigned
char
bmpcoreimage
[
38
]
=
{
0x42
,
0x4d
,
0x26
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x22
,
0x00
,
0x00
,
0x00
,
0x0c
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0xff
,
0xff
,
0xff
,
0x00
,
0x55
,
0x55
,
0x55
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
0x42
,
0x4d
,
0x1e
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x1a
,
0x00
,
0x00
,
0x00
,
0x0c
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x18
,
0x00
,
0xff
,
0xff
,
0xff
,
0x00
};
/* 2x2 pixel gif */
...
...
@@ -1219,7 +1218,8 @@ static void test_LoadImageFile(const char * test_desc, const unsigned char * ima
ok
(
error
==
0
,
"Last error: %lu
\n
"
,
error
);
if
(
expect_success
)
{
ok
(
handle
!=
NULL
,
"IMAGE_BITMAP failed
\n
"
);
ok
(
handle
!=
NULL
||
broken
(
image_data
==
bmpcoreimage
)
/* pre-security update */
,
"IMAGE_BITMAP failed
\n
"
);
if
(
handle
!=
NULL
)
test_LoadImageBitmap
(
handle
);
}
else
ok
(
handle
==
NULL
,
"IMAGE_BITMAP succeeded incorrectly
\n
"
);
...
...
@@ -2867,9 +2867,8 @@ static void test_monochrome_icon(void)
CloseHandle
(
handle
);
handle
=
LoadImageA
(
NULL
,
"icon.ico"
,
IMAGE_ICON
,
0
,
0
,
LR_LOADFROMFILE
);
ok
(
handle
!=
NULL
||
broken
(
use_core_info
&&
handle
==
NULL
),
/* Win 8, 10 */
"LoadImage() failed with %lu.
\n
"
,
GetLastError
());
if
(
!
monochrome
&&
!
use_core_info
)
ok
(
handle
!=
NULL
,
"LoadImage() failed with %lu.
\n
"
,
GetLastError
());
else
todo_wine
ok
(
handle
==
NULL
||
broken
(
!
use_core_info
)
/* Win7 */
,
"LoadImage() failed with %lu.
\n
"
,
GetLastError
());
if
(
handle
==
NULL
)
{
skip
(
"Icon failed to load: %s, %s
\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