comctl32/listview: Fix LVM_GETCOLUMNORDERARRAY passing message to header.

This commit is contained in:
Nikolay Sivov 2009-04-24 14:59:35 +04:00 committed by Alexandre Julliard
parent 3845ed795f
commit 8b26cce8f8
2 changed files with 3 additions and 7 deletions

View File

@ -5375,16 +5375,12 @@ static BOOL LISTVIEW_GetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn, LPLVC
static BOOL LISTVIEW_GetColumnOrderArray(const LISTVIEW_INFO *infoPtr, INT iCount, LPINT lpiArray)
{
INT i;
TRACE("iCount=%d, lpiArray=%p\n", iCount, lpiArray);
if (!lpiArray)
return FALSE;
/* FIXME: little hack */
for (i = 0; i < iCount; i++)
lpiArray[i] = i;
return TRUE;
return SendMessageW(infoPtr->hwndHeader, HDM_GETORDERARRAY, iCount, (LPARAM)lpiArray);
}
/***

View File

@ -850,7 +850,7 @@ static void test_columns(void)
ok(order[0] == 0, "Expected order 0, got %d\n", order[0]);
ok(order[1] == 1, "Expected order 1, got %d\n", order[1]);
ok_sequence(sequences, LISTVIEW_SEQ_INDEX, listview_getorderarray_seq, "get order array", TRUE);
ok_sequence(sequences, LISTVIEW_SEQ_INDEX, listview_getorderarray_seq, "get order array", FALSE);
DestroyWindow(hwnd);
}