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
94a3c098
Commit
94a3c098
authored
Apr 26, 2010
by
Wolfram Sang
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Ignore reserved bytes in BMP fileheader.
parent
b25cd21d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
cursoricon.c
dlls/user32/cursoricon.c
+1
-3
cursoricon.c
dlls/user32/tests/cursoricon.c
+1
-1
No files found.
dlls/user32/cursoricon.c
View file @
94a3c098
...
...
@@ -2486,9 +2486,7 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name,
if
(
!
(
ptr
=
map_fileW
(
name
,
NULL
)))
return
0
;
info
=
(
BITMAPINFO
*
)(
ptr
+
sizeof
(
BITMAPFILEHEADER
));
bmfh
=
(
BITMAPFILEHEADER
*
)
ptr
;
if
(
!
(
bmfh
->
bfType
==
0x4d42
/* 'BM' */
&&
bmfh
->
bfReserved1
==
0
&&
bmfh
->
bfReserved2
==
0
))
if
(
bmfh
->
bfType
!=
0x4d42
/* 'BM' */
)
{
WARN
(
"Invalid/unsupported bitmap format!
\n
"
);
UnmapViewOfFile
(
ptr
);
...
...
dlls/user32/tests/cursoricon.c
View file @
94a3c098
...
...
@@ -700,7 +700,7 @@ static const unsigned char pngimage[285] = {
/* 1x1 pixel bmp */
static
const
unsigned
char
bmpimage
[
66
]
=
{
0x42
,
0x4d
,
0x42
,
0x00
,
0x00
,
0x00
,
0x
00
,
0x00
,
0x00
,
0x00
,
0x3e
,
0x00
,
0x00
,
0x00
,
0x28
,
0x00
,
0x42
,
0x4d
,
0x42
,
0x00
,
0x00
,
0x00
,
0x
DE
,
0xAD
,
0xBE
,
0xEF
,
0x3e
,
0x00
,
0x00
,
0x00
,
0x28
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x04
,
0x00
,
0x00
,
0x00
,
0x12
,
0x0b
,
0x00
,
0x00
,
0x12
,
0x0b
,
0x00
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xff
,
0x00
,
0xff
,
0xff
,
0xff
,
0x00
,
0x00
,
0x00
,
...
...
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