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
b242d9ce
Commit
b242d9ce
authored
May 10, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Constify some arrays.
parent
b3e26be0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cursoricon.c
dlls/user32/tests/cursoricon.c
+6
-6
No files found.
dlls/user32/tests/cursoricon.c
View file @
b242d9ce
...
...
@@ -955,14 +955,14 @@ static void test_CreateIcon(void)
/* Shamelessly ripped from dlls/oleaut32/tests/olepicture.c */
/* 1x1 pixel gif */
static
unsigned
char
gifimage
[
35
]
=
{
static
const
unsigned
char
gifimage
[
35
]
=
{
0x47
,
0x49
,
0x46
,
0x38
,
0x37
,
0x61
,
0x01
,
0x00
,
0x01
,
0x00
,
0x80
,
0x00
,
0x00
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x2c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x02
,
0x02
,
0x44
,
0x01
,
0x00
,
0x3b
};
/* 1x1 pixel jpg */
static
unsigned
char
jpgimage
[
285
]
=
{
static
const
unsigned
char
jpgimage
[
285
]
=
{
0xff
,
0xd8
,
0xff
,
0xe0
,
0x00
,
0x10
,
0x4a
,
0x46
,
0x49
,
0x46
,
0x00
,
0x01
,
0x01
,
0x01
,
0x01
,
0x2c
,
0x01
,
0x2c
,
0x00
,
0x00
,
0xff
,
0xdb
,
0x00
,
0x43
,
0x00
,
0x05
,
0x03
,
0x04
,
0x04
,
0x04
,
0x03
,
0x05
,
0x04
,
0x04
,
0x04
,
0x05
,
0x05
,
0x05
,
0x06
,
0x07
,
0x0c
,
0x08
,
0x07
,
0x07
,
0x07
,
0x07
,
0x0f
,
0x0b
,
...
...
@@ -984,7 +984,7 @@ static unsigned char jpgimage[285] = {
};
/* 1x1 pixel png */
static
unsigned
char
pngimage
[
285
]
=
{
static
const
unsigned
char
pngimage
[
285
]
=
{
0x89
,
0x50
,
0x4e
,
0x47
,
0x0d
,
0x0a
,
0x1a
,
0x0a
,
0x00
,
0x00
,
0x00
,
0x0d
,
0x49
,
0x48
,
0x44
,
0x52
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x08
,
0x02
,
0x00
,
0x00
,
0x00
,
0x90
,
0x77
,
0x53
,
0xde
,
0x00
,
0x00
,
0x00
,
0x09
,
0x70
,
0x48
,
0x59
,
0x73
,
0x00
,
0x00
,
0x0b
,
0x13
,
0x00
,
0x00
,
0x0b
,
...
...
@@ -1005,14 +1005,14 @@ static unsigned char bmpimage[70] = {
};
/* 1x1 pixel bmp using BITMAPCOREHEADER */
static
unsigned
char
bmpcoreimage
[
38
]
=
{
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
};
/* 2x2 pixel gif */
static
unsigned
char
gif4pixel
[
42
]
=
{
static
const
unsigned
char
gif4pixel
[
42
]
=
{
0x47
,
0x49
,
0x46
,
0x38
,
0x37
,
0x61
,
0x02
,
0x00
,
0x02
,
0x00
,
0xa1
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x39
,
0x62
,
0xfc
,
0xff
,
0x1a
,
0xe5
,
0xff
,
0xff
,
0xff
,
0x2c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x00
,
0x02
,
0x00
,
0x00
,
0x02
,
0x03
,
0x14
,
0x16
,
0x05
,
0x00
,
0x3b
...
...
@@ -1059,7 +1059,7 @@ static void test_LoadImageBitmap(const char * test_desc, HBITMAP hbm)
ok
(
color_match
(
pixel
,
0x00ffffff
),
"%s: Pixel is 0x%08x
\n
"
,
test_desc
,
pixel
);
}
static
void
test_LoadImageFile
(
const
char
*
test_desc
,
unsigned
char
*
image_data
,
static
void
test_LoadImageFile
(
const
char
*
test_desc
,
const
unsigned
char
*
image_data
,
unsigned
int
image_size
,
const
char
*
ext
,
BOOL
expect_success
)
{
HANDLE
handle
;
...
...
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