>From 28af43b36941abe9fe14a57d2a1e1bc8ecbccee1 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Sun, 12 Feb 2012 22:24:28 +0300
Subject: [PATCH 7/7] Trace Header order array contents

---
 dlls/comctl32/header.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index ce95d58..0a40423 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -1241,6 +1241,14 @@ HEADER_SetOrderArray(HEADER_INFO *infoPtr, INT size, const INT *order)
     if ((UINT)size != infoPtr->uNumItem)
       return FALSE;
 
+    if (TRACE_ON(header))
+    {
+        TRACE("count=%d, order array={", size);
+        for (i = 0; i < size; i++)
+            TRACE("%d%c", order[i], i != size-1 ? ',' : '}');
+        TRACE("\n");
+    }
+
     for (i=0; i<size; i++)
     {
         if (order[i] >= size || order[i] < 0)
-- 
1.5.6.5

