Fix dragging treelist column divider Fix regression from commit
@@ -5519,8 +5519,8 @@ VOID PhTnpDrawCell(
if (Column == Context->FirstColumn)
{
- BOOLEAN needsClip;
- HRGN oldClipRegion;
+ BOOLEAN needsClip = FALSE;
+ HRGN oldClipRegion = NULL;
textRect.left += Node->Level * SmallIconWidth;
@@ -5631,9 +5631,11 @@ VOID PhTnpDrawCell(
textRect.left += SmallIconWidth + TNP_ICON_RIGHT_PADDING;
}
- if (needsClip && oldClipRegion)
+ if (needsClip)
{
SelectClipRgn(hdc, oldClipRegion);
+
+ if (oldClipRegion)
DeleteRgn(oldClipRegion);
}
