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
b600ac0f
Commit
b600ac0f
authored
Oct 11, 1998
by
Eric Kohl
Committed by
Alexandre Julliard
Oct 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes.
parent
a8ea46b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
listview.c
dlls/comctl32/listview.c
+20
-8
No files found.
dlls/comctl32/listview.c
View file @
b600ac0f
...
...
@@ -75,13 +75,14 @@ LISTVIEW_DeleteAllItems (WND *wndPtr)
/* get item pointer */
lpItem
=
(
LISTVIEW_ITEM
*
)
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
nItem
);
if
(
lpItem
)
{
/* delete item strings */
if
((
lpItem
->
pszText
)
&&
(
lpItem
->
pszText
!=
LPSTR_TEXTCALLBACK32A
))
COMCTL32_Free
(
lpItem
->
pszText
);
/* delete item strings */
if
((
lpItem
->
pszText
)
&&
(
lpItem
->
pszText
!=
LPSTR_TEXTCALLBACK32A
))
COMCTL32_Free
(
lpItem
->
pszText
);
/* free item data */
COMCTL32_Free
(
lpItem
);
/* free item data */
COMCTL32_Free
(
lpItem
);
}
}
DPA_DeleteAllPtrs
(
infoPtr
->
hdpaItems
);
...
...
@@ -219,7 +220,7 @@ LISTVIEW_GetColumn32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
if
(
lpcol
->
mask
&
LVCF_WIDTH
)
lpcol
->
cx
=
hdi
.
cxy
;
if
((
lpcol
->
mask
&
LVCF_TEXT
)
&&
(
lpcol
->
pszText
))
if
((
lpcol
->
mask
&
LVCF_TEXT
)
&&
(
lpcol
->
pszText
)
&&
(
hdi
.
pszText
)
)
lstrcpyn32A
(
lpcol
->
pszText
,
hdi
.
pszText
,
lpcol
->
cchTextMax
);
if
(
lpcol
->
mask
&
LVCF_IMAGE
)
...
...
@@ -420,8 +421,18 @@ LISTVIEW_GetNextItem (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
INT32
nStart
=
(
INT32
)
wParam
;
UINT32
uFlags
=
(
UINT32
)
LOWORD
(
lParam
);
FIXME
(
listview
,
"(%d, 0x%x); empty stub!
\n
"
,
nStart
,
uFlags
);
FIXME
(
listview
,
"(%d, 0x%x): semi stub!
\n
"
,
nStart
,
uFlags
);
if
(
infoPtr
->
nItemCount
<=
0
)
return
-
1
;
/* just a simple (preliminary) hack */
if
(
nStart
==
-
1
)
return
0
;
else
if
(
nStart
<
infoPtr
->
nItemCount
-
1
)
return
nStart
+
1
;
else
return
-
1
;
return
-
1
;
}
...
...
@@ -575,6 +586,7 @@ LISTVIEW_InsertItem32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
return
-
1
;
FIXME
(
listview
,
"(%d %p)
\n
"
,
lpItem
->
iItem
,
lpItem
);
FIXME
(
listview
,
"(%p %p)
\n
"
,
infoPtr
,
infoPtr
->
hdpaItems
);
lpListItem
=
(
LISTVIEW_ITEM
*
)
COMCTL32_Alloc
(
infoPtr
->
nColumnCount
*
sizeof
(
LISTVIEW_ITEM
));
nIndex
=
DPA_InsertPtr
(
infoPtr
->
hdpaItems
,
lpItem
->
iItem
,
lpListItem
);
...
...
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