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
c6fd6b6a
Commit
c6fd6b6a
authored
May 28, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Prevent writing to not allocated memory.
parent
d2d8d71e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cursoricon.c
dlls/user32/tests/cursoricon.c
+8
-0
No files found.
dlls/user32/tests/cursoricon.c
View file @
c6fd6b6a
...
...
@@ -593,9 +593,13 @@ static void test_CreateIcon(void)
bmpinfo
.
bmiHeader
.
biBitCount
=
8
;
bmpinfo
.
bmiHeader
.
biCompression
=
BI_RGB
;
hbmColor
=
CreateDIBSection
(
hdc
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hbmColor
!=
NULL
,
"Expected a handle to the DIB
\n
"
);
if
(
bits
)
memset
(
bits
,
0x55
,
32
*
32
*
bmpinfo
.
bmiHeader
.
biBitCount
/
8
);
bmpinfo
.
bmiHeader
.
biBitCount
=
1
;
hbmMask
=
CreateDIBSection
(
hdc
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hbmMask
!=
NULL
,
"Expected a handle to the DIB
\n
"
);
if
(
bits
)
memset
(
bits
,
0x55
,
32
*
32
*
bmpinfo
.
bmiHeader
.
biBitCount
/
8
);
info
.
fIcon
=
TRUE
;
...
...
@@ -612,6 +616,8 @@ static void test_CreateIcon(void)
bmpinfo
.
bmiHeader
.
biBitCount
=
16
;
hbmColor
=
CreateDIBSection
(
hdc
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hbmColor
!=
NULL
,
"Expected a handle to the DIB
\n
"
);
if
(
bits
)
memset
(
bits
,
0x55
,
32
*
32
*
bmpinfo
.
bmiHeader
.
biBitCount
/
8
);
info
.
fIcon
=
TRUE
;
...
...
@@ -628,6 +634,8 @@ static void test_CreateIcon(void)
bmpinfo
.
bmiHeader
.
biBitCount
=
32
;
hbmColor
=
CreateDIBSection
(
hdc
,
&
bmpinfo
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hbmColor
!=
NULL
,
"Expected a handle to the DIB
\n
"
);
if
(
bits
)
memset
(
bits
,
0x55
,
32
*
32
*
bmpinfo
.
bmiHeader
.
biBitCount
/
8
);
info
.
fIcon
=
TRUE
;
...
...
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