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
f0f3157d
Commit
f0f3157d
authored
Dec 02, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't touch out text pointer if it wasn't requested.
parent
0b046c94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
listview.c
dlls/comctl32/listview.c
+6
-4
No files found.
dlls/comctl32/listview.c
View file @
f0f3157d
...
...
@@ -982,7 +982,7 @@ static BOOL notify_dispinfoT(const LISTVIEW_INFO *infoPtr, UINT code, LPNMLVDISP
TRACE
(
" pdi->item=%s
\n
"
,
debuglvitem_t
(
&
pdi
->
item
,
infoPtr
->
notifyFormat
!=
NFR_ANSI
));
ret
=
notify_hdr
(
infoPtr
,
code
,
&
pdi
->
hdr
);
TRACE
(
" resulting code=
0x%08x
\n
"
,
pdi
->
hdr
.
code
);
TRACE
(
" resulting code=
%d
\n
"
,
pdi
->
hdr
.
code
);
if
(
return_ansi
||
return_unicode
)
{
...
...
@@ -1011,7 +1011,7 @@ static BOOL notify_dispinfoT(const LISTVIEW_INFO *infoPtr, UINT code, LPNMLVDISP
}
/* if dipsinfo holder changed notification code then convert */
if
(
!
isW
&&
(
pdi
->
hdr
.
code
==
LVN_GETDISPINFOW
))
if
(
!
isW
&&
(
pdi
->
hdr
.
code
==
LVN_GETDISPINFOW
)
&&
(
pdi
->
item
.
mask
&
LVIF_TEXT
)
)
{
length
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pdi
->
item
.
pszText
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
@@ -6472,6 +6472,7 @@ static BOOL LISTVIEW_GetItemT(const LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem,
return
FALSE
;
if
(
lpLVItem
->
mask
==
0
)
return
TRUE
;
TRACE
(
"mask=%x
\n
"
,
lpLVItem
->
mask
);
/* make a local copy */
isubitem
=
lpLVItem
->
iSubItem
;
...
...
@@ -8901,10 +8902,10 @@ static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *infoPtr, HWND hwndNewToolTip)
* RETURN:
* Old Unicode Format
*/
static
BOOL
LISTVIEW_SetUnicodeFormat
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
fU
nicode
)
static
BOOL
LISTVIEW_SetUnicodeFormat
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
u
nicode
)
{
SHORT
rc
=
infoPtr
->
notifyFormat
;
infoPtr
->
notifyFormat
=
(
fU
nicode
)
?
NFR_UNICODE
:
NFR_ANSI
;
infoPtr
->
notifyFormat
=
(
u
nicode
)
?
NFR_UNICODE
:
NFR_ANSI
;
return
rc
==
NFR_UNICODE
;
}
...
...
@@ -9322,6 +9323,7 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
(
WPARAM
)
infoPtr
->
hwndSelf
,
NF_QUERY
);
/* on error defaulting to ANSI notifications */
if
(
infoPtr
->
notifyFormat
==
0
)
infoPtr
->
notifyFormat
=
NFR_ANSI
;
TRACE
(
"notify format=%d
\n
"
,
infoPtr
->
notifyFormat
);
if
((
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
&&
(
lpcs
->
style
&
WS_VISIBLE
))
{
...
...
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