From 32800de137a8e5f230486e7e93a0736862725aca Mon Sep 17 00:00:00 2001 From: Lucas Fialho Zawacki Date: Tue, 13 Sep 2011 02:55:00 -0300 Subject: [PATCH] dinput: Fill dialog with info about the first device by default in config.c. --- dlls/dinput/config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/dinput/config.c b/dlls/dinput/config.c index 98a542cd6a2..1098259d5ba 100644 --- a/dlls/dinput/config.c +++ b/dlls/dinput/config.c @@ -374,6 +374,10 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w data->original_lpdiaf->rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*data->lpdiaf->dwNumActions); copy_actions(data->original_lpdiaf, data->lpdiaf); + /* Select the first device and show its actions */ + SendDlgItemMessageW(dialog, IDC_CONTROLLERCOMBO, CB_SETCURSEL, 0, 0); + fill_device_object_list(dialog); + break; }