26 Aug
2011
26 Aug
'11
6:19 a.m.
Lucas Fialho Zawacki <lfzawacki(a)gmail.com> writes:
+static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + static LPDIACTIONFORMATW lpdiaf; + static DIDevicesData devices_data; + static ConfigureDevicesData *conf_data; + + switch(uMsg) + { + case WM_INITDIALOG: + /* Initialize action format and enumerate devices */ + conf_data = (ConfigureDevicesData*) lParam; + lpdiaf = conf_data->params->lprgFormats;
It doesn't make sense to pass the info as WM_INITDIALG parameter if it's going to be stored in global variables anyway. A better way would be to store this in the window info. -- Alexandre Julliard julliard(a)winehq.org