comctl32/listview: Fix LVM_GETCOLUMNORDERARRAY passing message to header.
This commit is contained in:
parent
3845ed795f
commit
8b26cce8f8
|
@ -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);
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue