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
98658699
Commit
98658699
authored
May 13, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
May 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: header: Don't check lpItem for NULL in GetItemT.
parent
e718939e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
header.c
dlls/comctl32/header.c
+7
-8
No files found.
dlls/comctl32/header.c
View file @
98658699
...
...
@@ -892,20 +892,20 @@ HEADER_GetItemT (HWND hwnd, INT nItem, LPHDITEMW phdi, BOOL bUnicode)
lpItem
=
&
infoPtr
->
items
[
nItem
];
if
(
phdi
->
mask
&
HDI_BITMAP
)
phdi
->
hbm
=
(
lpItem
!=
NULL
)
?
lpItem
->
hbm
:
0
;
phdi
->
hbm
=
lpItem
->
hbm
;
if
(
phdi
->
mask
&
HDI_FORMAT
)
phdi
->
fmt
=
(
lpItem
!=
NULL
)
?
lpItem
->
fmt
:
0
;
phdi
->
fmt
=
lpItem
->
fmt
;
if
(
phdi
->
mask
&
HDI_WIDTH
)
phdi
->
cxy
=
(
lpItem
!=
NULL
)
?
lpItem
->
cxy
:
0
;
phdi
->
cxy
=
lpItem
->
cxy
;
if
(
phdi
->
mask
&
HDI_LPARAM
)
phdi
->
lParam
=
(
lpItem
!=
NULL
)
?
lpItem
->
lParam
:
0
;
phdi
->
lParam
=
lpItem
->
lParam
;
if
(
phdi
->
mask
&
HDI_IMAGE
)
{
phdi
->
iImage
=
(
lpItem
!=
NULL
)
?
lpItem
->
iImage
:
0
;
phdi
->
iImage
=
lpItem
->
iImage
;
if
(
lpItem
->
iImage
==
I_IMAGECALLBACK
)
{
HEADER_SendHeaderDispInfoNotify
(
hwnd
,
nItem
,
HDI_IMAGE
,
phdi
,
lpItem
,
bUnicode
);
...
...
@@ -913,12 +913,11 @@ HEADER_GetItemT (HWND hwnd, INT nItem, LPHDITEMW phdi, BOOL bUnicode)
}
if
(
phdi
->
mask
&
HDI_ORDER
)
phdi
->
iOrder
=
(
lpItem
!=
NULL
)
?
lpItem
->
iOrder
:
0
;
phdi
->
iOrder
=
lpItem
->
iOrder
;
if
(
phdi
->
mask
&
HDI_TEXT
)
{
if
(
lpItem
==
NULL
)
*
phdi
->
pszText
=
0
;
/* null pointer check */
else
if
(
lpItem
->
pszText
==
LPSTR_TEXTCALLBACKW
)
/* covers == TEXTCALLBACKA too */
if
(
lpItem
->
pszText
==
LPSTR_TEXTCALLBACKW
)
/* covers == TEXTCALLBACKA too */
{
HEADER_SendHeaderDispInfoNotify
(
hwnd
,
nItem
,
HDI_TEXT
,
phdi
,
lpItem
,
bUnicode
);
}
...
...
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