[PATCH] winmm: Add a WARNing when winejoystick.drv is missing.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Thu Nov 15 17:52:52 CST 2018


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
If winejoystick.drv is expected to be present by default,
then this should be promoted to an ERRor...
---
 dlls/winmm/joystick.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winmm/joystick.c b/dlls/winmm/joystick.c
index 5a12b36..92a7ce9 100644
--- a/dlls/winmm/joystick.c
+++ b/dlls/winmm/joystick.c
@@ -79,6 +79,8 @@ static	BOOL JOY_LoadDriver(DWORD dwJoyID)
 
     if (!JOY_Sticks[dwJoyID].hDriver)
     {
+        WARN("OpenDriverA(\"winejoystick.drv\") failed\n");
+
         /* The default driver is missing, don't attempt to load it again */
         winejoystick_missing = TRUE;
     }
-- 
2.10.0.windows.1




More information about the wine-devel mailing list