If the joydevice is not present, do not create a DirectInputDevice.

diff --git a/windows/dinput.c b/windows/dinput.c
index 8e1b2ae..0b2c0cd 100644
--- a/windows/dinput.c
+++ b/windows/dinput.c
@@ -242,7 +242,9 @@
 	if ((dwDevType == 0) || (dwDevType == DIDEVTYPE_JOYSTICK)) {
 		/* check whether we have a joystick */
 #ifdef HAVE_LINUX_22_JOYSTICK_API
-		if ((access(JOYDEV,O_RDONLY)!=-1) || (errno!=ENODEV)) {
+		if (	(access(JOYDEV,O_RDONLY)!=-1)		||
+			(errno!=ENODEV && errno!=ENOENT)
+		) {
 		    /* Return joystick */
 		    devInstance.guidInstance	= GUID_Joystick;
 		    devInstance.guidProduct	= DInput_Wine_Joystick_GUID;