fix a small bug in dinput the last sync with wine did not go well still some bugs left Modified: trunk/reactos/lib/dinput/dinput_main.c _____
Modified: trunk/reactos/lib/dinput/dinput_main.c --- trunk/reactos/lib/dinput/dinput_main.c 2005-05-17 07:39:49 UTC (rev 15374) +++ trunk/reactos/lib/dinput/dinput_main.c 2005-05-17 12:30:52 UTC (rev 15375) @@ -375,7 +375,9 @@
/* Loop on all the devices to see if anyone matches the given GUID */ for (i = 0; i < NB_DINPUT_DEVICES; i++) { HRESULT ret; - if (!dinput_devices[i]->create_deviceA) continue; +#ifndef __REACTOS__ + if (!dinput_devices[i]->create_deviceA) continue; +#endif if ((ret = dinput_devices[i]->create_deviceA(This, rguid, NULL, pdev)) == DI_OK) return DI_OK;
@@ -405,7 +407,9 @@ /* Loop on all the devices to see if anyone matches the given GUID */ for (i = 0; i < NB_DINPUT_DEVICES; i++) { HRESULT ret; +#ifndef __REACTOS__ if (!dinput_devices[i]->create_deviceW) continue; +#endif if ((ret = dinput_devices[i]->create_deviceW(This, rguid, NULL, pdev)) == DI_OK) return DI_OK;
@@ -474,7 +478,9 @@ /* Loop on all the devices to see if anyone matches the given GUID */ for (i = 0; i < NB_DINPUT_DEVICES; i++) { HRESULT ret; +#ifndef __REACTOS__ if (!dinput_devices[i]->create_deviceA) continue; +#endif if ((ret = dinput_devices[i]->create_deviceA(This, rguid, riid, (LPDIRECTINPUTDEVICEA*) pvOut)) == DI_OK) return DI_OK;
@@ -504,7 +510,9 @@ /* Loop on all the devices to see if anyone matches the given GUID */ for (i = 0; i < NB_DINPUT_DEVICES; i++) { HRESULT ret; +#ifndef __REACTOS__ if (!dinput_devices[i]->create_deviceW) continue; +#endif if ((ret = dinput_devices[i]->create_deviceW(This, rguid, riid, (LPDIRECTINPUTDEVICEW*) pvOut)) == DI_OK) return DI_OK;