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
01fdf217
Commit
01fdf217
authored
May 26, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Perform ranges validation only when tracing enabled.
parent
45d6329c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
listview.c
dlls/comctl32/listview.c
+2
-9
No files found.
dlls/comctl32/listview.c
View file @
01fdf217
...
...
@@ -168,9 +168,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
listview
);
/* make sure you set this to 0 for production use! */
#define DEBUG_RANGES 1
typedef
struct
tagCOLUMN_INFO
{
RECT
rcHeader
;
/* tracks the header's rectangle */
...
...
@@ -2968,11 +2965,7 @@ static INT CALLBACK ranges_cmp(LPVOID range1, LPVOID range2, LPARAM flags)
return
cmp
;
}
#if DEBUG_RANGES
#define ranges_check(ranges, desc) ranges_assert(ranges, desc, __FUNCTION__, __LINE__)
#else
#define ranges_check(ranges, desc) do { } while(0)
#endif
#define ranges_check(ranges, desc) if (TRACE_ON(listview)) ranges_assert(ranges, desc, __FUNCTION__, __LINE__)
static
void
ranges_assert
(
RANGES
ranges
,
LPCSTR
desc
,
const
char
*
func
,
int
line
)
{
...
...
@@ -6961,7 +6954,7 @@ static BOOL LISTVIEW_GetSubItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPR
nColumn
=
lprc
->
top
;
TRACE
(
"(nItem=%d, nSubItem=%d
)
\n
"
,
nItem
,
lprc
->
top
);
TRACE
(
"(nItem=%d, nSubItem=%d
, type=%d)
\n
"
,
nItem
,
lprc
->
top
,
lprc
->
left
);
/* On WinNT, a subitem of '0' calls LISTVIEW_GetItemRect */
if
(
lprc
->
top
==
0
)
return
LISTVIEW_GetItemRect
(
infoPtr
,
nItem
,
lprc
);
...
...
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