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
25923d2f
Commit
25923d2f
authored
Feb 24, 2011
by
Wolfram Sang
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Modify proper fields instead of magic offsets.
parent
01ca32ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
cursoricon.c
dlls/user32/tests/cursoricon.c
+9
-5
No files found.
dlls/user32/tests/cursoricon.c
View file @
25923d2f
...
...
@@ -854,7 +854,7 @@ static void test_LoadImage(void)
DWORD
error
,
bytes_written
;
CURSORICONFILEDIR
*
icon_data
;
CURSORICONFILEDIRENTRY
*
icon_entry
;
BITMAPINFOHEADER
*
icon_header
;
BITMAPINFOHEADER
*
icon_header
,
*
bitmap_header
;
ICONINFO
icon_info
;
#define ICON_WIDTH 32
...
...
@@ -981,13 +981,17 @@ static void test_LoadImage(void)
test_LoadImageFile
(
"GIF (2x2 pixel)"
,
gif4pixel
,
sizeof
(
gif4pixel
),
"gif"
,
0
);
test_LoadImageFile
(
"JPG"
,
jpgimage
,
sizeof
(
jpgimage
),
"jpg"
,
0
);
test_LoadImageFile
(
"PNG"
,
pngimage
,
sizeof
(
pngimage
),
"png"
,
0
);
/* Check failure for broken BMP images */
bmpimage
[
0x14
]
++
;
/* biHeight > 65535 */
bitmap_header
=
(
BITMAPINFOHEADER
*
)(
bmpimage
+
sizeof
(
BITMAPFILEHEADER
));
bitmap_header
->
biHeight
=
65536
;
test_LoadImageFile
(
"BMP (too high)"
,
bmpimage
,
sizeof
(
bmpimage
),
"bmp"
,
0
);
bmpimage
[
0x14
]
--
;
bmpimage
[
0x18
]
++
;
/* biWidth > 65535 */
bitmap_header
->
biHeight
=
1
;
bitmap_header
->
biWidth
=
65536
;
test_LoadImageFile
(
"BMP (too wide)"
,
bmpimage
,
sizeof
(
bmpimage
),
"bmp"
,
0
);
b
mpimage
[
0x18
]
--
;
b
itmap_header
->
biWidth
=
1
;
}
static
void
test_CreateIconFromResource
(
void
)
...
...
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