comctl32: header: Don't send HDN_GETDISPINFO during HDM_SET/INSERTITEM.
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index cab8cc7..bf8581d 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -1104,15 +1104,7 @@
if (phdi->mask & HDI_IMAGE)
{
- if (phdi->iImage != I_IMAGECALLBACK)
- {
- lpItem->iImage = phdi->iImage;
- }
- else
- {
- lpItem->iImage = phdi->iImage;
- HEADER_SendHeaderDispInfoNotify(hwnd, nItem, HDI_IMAGE, NULL, lpItem, bUnicode);
- }
+ lpItem->iImage = phdi->iImage;
}
if (phdi->mask & HDI_TEXT)
@@ -1128,7 +1120,6 @@
else
{
lpItem->pszText = phdi->pszText;
- HEADER_SendHeaderDispInfoNotify(hwnd, nItem, HDI_TEXT, NULL, lpItem, bUnicode);
}
lpItem->fmt |= HDF_STRING;
}
@@ -1244,15 +1235,7 @@
if (phdi->mask & HDI_IMAGE)
{
- if (phdi->iImage != I_IMAGECALLBACK)
- {
- lpItem->iImage = phdi->iImage;
- }
- else
- {
- lpItem->iImage = phdi->iImage;
- HEADER_SendHeaderDispInfoNotify(hwnd, nItem, HDI_IMAGE, NULL, lpItem, bUnicode);
- }
+ lpItem->iImage = phdi->iImage;
}
if (phdi->mask & HDI_TEXT)
@@ -1276,7 +1259,6 @@
else
{
lpItem->pszText = phdi->pszText;
- HEADER_SendHeaderDispInfoNotify(hwnd, nItem, HDI_TEXT, NULL, lpItem, bUnicode);
}
}