[PATCH] dinput: Fix invalid use of post-incremented device_count value.