Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ddf0049e
Commit
ddf0049e
authored
Jun 02, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/header: Check Null before accessing struct member.
parent
f21983cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
header.c
dlls/comctl32/header.c
+3
-1
No files found.
dlls/comctl32/header.c
View file @
ddf0049e
...
...
@@ -1141,15 +1141,17 @@ HEADER_GetItemT (HWND hwnd, INT nItem, LPHDITEMW phdi, BOOL bUnicode)
{
HEADER_INFO
*
infoPtr
=
HEADER_GetInfoPtr
(
hwnd
);
HEADER_ITEM
*
lpItem
;
UINT
mask
=
phdi
->
mask
;
UINT
mask
;
if
(
!
phdi
)
return
FALSE
;
TRACE
(
"[nItem=%d]
\n
"
,
nItem
);
mask
=
phdi
->
mask
;
if
(
mask
==
0
)
return
TRUE
;
if
((
nItem
<
0
)
||
(
nItem
>=
(
INT
)
infoPtr
->
uNumItem
))
return
FALSE
;
...
...
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