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
77874d78
Commit
77874d78
authored
Feb 04, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
Feb 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Fix LVM_SETICONSPACING on 64bit machines.
parent
80f70b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
listview.c
dlls/comctl32/listview.c
+3
-1
listview.c
dlls/comctl32/tests/listview.c
+18
-3
No files found.
dlls/comctl32/listview.c
View file @
77874d78
...
@@ -11468,7 +11468,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -11468,7 +11468,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
LISTVIEW_SetHoverTime
(
infoPtr
,
(
DWORD
)
lParam
);
return
LISTVIEW_SetHoverTime
(
infoPtr
,
(
DWORD
)
lParam
);
case
LVM_SETICONSPACING
:
case
LVM_SETICONSPACING
:
return
LISTVIEW_SetIconSpacing
(
infoPtr
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
));
if
(
lParam
==
-
1
)
return
LISTVIEW_SetIconSpacing
(
infoPtr
,
-
1
,
-
1
);
return
LISTVIEW_SetIconSpacing
(
infoPtr
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
case
LVM_SETIMAGELIST
:
case
LVM_SETIMAGELIST
:
return
(
LRESULT
)
LISTVIEW_SetImageList
(
infoPtr
,
(
INT
)
wParam
,
(
HIMAGELIST
)
lParam
);
return
(
LRESULT
)
LISTVIEW_SetImageList
(
infoPtr
,
(
INT
)
wParam
,
(
HIMAGELIST
)
lParam
);
...
...
dlls/comctl32/tests/listview.c
View file @
77874d78
...
@@ -4654,11 +4654,26 @@ static void test_getitemspacing(void)
...
@@ -4654,11 +4654,26 @@ static void test_getitemspacing(void)
ret
=
SendMessage
(
hwnd
,
LVM_GETITEMSPACING
,
FALSE
,
0
);
ret
=
SendMessage
(
hwnd
,
LVM_GETITEMSPACING
,
FALSE
,
0
);
expect
(
100
,
LOWORD
(
ret
));
expect
(
100
,
LOWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
ret
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
-
1
);
expect
(
100
,
LOWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
if
(
sizeof
(
void
*
)
==
8
)
{
/* NOTE: -1 is not treated the same as (DWORD)-1 by 64bit listview */
ret
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
DWORD
)
-
1
);
expect
(
100
,
LOWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
ret
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
-
1
);
expect
(
0xFFFF
,
LOWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
}
else
{
ret
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
-
1
);
expect
(
100
,
LOWORD
(
ret
));
expect
(
0xFFFF
,
HIWORD
(
ret
));
}
ret
=
SendMessage
(
hwnd
,
LVM_GETITEMSPACING
,
FALSE
,
0
);
ret
=
SendMessage
(
hwnd
,
LVM_GETITEMSPACING
,
FALSE
,
0
);
/* spacing + icon size returned */
/* spacing + icon size returned */
expect
(
cx
+
40
,
LOWORD
(
ret
));
expect
(
cx
+
40
,
LOWORD
(
ret
));
...
...
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