Commit eab73f89 authored by Alexandre Julliard's avatar Alexandre Julliard

Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>

Fixed LISTVIEW_GetItemChanges() to perform a more complete comparison between lpItem and lpLVItem. Now compares the pszText string of the lpItem and lpLVItem structs. Fixes a bug where the old and new item have the same attributes but their text differs and GetItemChanges() compares them as equal.
parent 93c68a7e
......@@ -1205,10 +1205,33 @@ static UINT LISTVIEW_GetItemChanges(LISTVIEW_ITEM *lpItem, LPLVITEMA lpLVItem)
{
uChanged |= LVIF_TEXT;
}
else
{
if (lpLVItem->pszText)
{
if (lpItem->pszText)
{
if (strcmp(lpLVItem->pszText, lpItem->pszText) != 0)
{
uChanged |= LVIF_TEXT;
}
}
else
{
uChanged |= LVIF_TEXT;
}
}
else
{
if (lpItem->pszText)
{
uChanged |= LVIF_TEXT;
}
}
}
}
}
}
return uChanged;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment