comctl32/tests: Avoid handle casts in traces.
This commit is contained in:
parent
c03917c173
commit
acdcb19cbb
|
@ -984,13 +984,13 @@ static void test_hdm_imageMessages(HWND hParent)
|
|||
flush_sequences(sequences, NUM_MSG_SEQUENCES);
|
||||
|
||||
hImageListRetVal = (HIMAGELIST) SendMessage(hChild, HDM_SETIMAGELIST, 0, (LPARAM) hImageList);
|
||||
ok(hImageListRetVal == NULL, "Expected NULL, got %d\n", (int) hImageListRetVal);
|
||||
ok(hImageListRetVal == NULL, "Expected NULL, got %p\n", hImageListRetVal);
|
||||
|
||||
hImageListRetVal = (HIMAGELIST) SendMessage(hChild, HDM_GETIMAGELIST, 0, 0);
|
||||
ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %d\n", (int) hImageListRetVal);
|
||||
ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %p\n", hImageListRetVal);
|
||||
|
||||
hImageListRetVal = (HIMAGELIST) SendMessage(hChild, HDM_CREATEDRAGIMAGE, 0, 0);
|
||||
ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %d\n", (int) hImageListRetVal);
|
||||
ok(hImageListRetVal != NULL, "Expected non-NULL handle, got %p\n", hImageListRetVal);
|
||||
|
||||
ok_sequence(sequences, HEADER_SEQ_INDEX, imageMessages_seq, "imageMessages sequence testing", FALSE);
|
||||
|
||||
|
|
|
@ -101,8 +101,8 @@ static LRESULT CALLBACK CustomDrawWndProc(HWND hWnd, UINT msg, WPARAM wParam, LP
|
|||
case WM_NOTIFY:
|
||||
if (((NMHDR *)lParam)->code == NM_CUSTOMDRAW) {
|
||||
NMTTCUSTOMDRAW *ttcd = (NMTTCUSTOMDRAW*) lParam;
|
||||
ok(ttcd->nmcd.hdr.hwndFrom == g_hwnd, "Unexpected hwnd source %x (%x)\n",
|
||||
(int)ttcd->nmcd.hdr.hwndFrom, (int) g_hwnd);
|
||||
ok(ttcd->nmcd.hdr.hwndFrom == g_hwnd, "Unexpected hwnd source %p (%p)\n",
|
||||
ttcd->nmcd.hdr.hwndFrom, g_hwnd);
|
||||
ok(ttcd->nmcd.hdr.idFrom == 0x1234ABCD, "Unexpected id %x\n", (int)ttcd->nmcd.hdr.idFrom);
|
||||
|
||||
switch (ttcd->nmcd.dwDrawStage) {
|
||||
|
|
Loading…
Reference in New Issue