[PATCH] winebus: Print SDL error message when SDL cannot be initialized.
Aric Stewart
aric at codeweavers.com
Mon May 14 11:17:57 CDT 2018
Signed-off-by: Aric Stewart <aric at codeweavers.com>
On 5/11/18 3:06 AM, Józef Kucia wrote:
> SDL_Init(SDL_INIT_HAPTIC) fails if SDL is built without haptic support.
>
> Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
> ---
> dlls/winebus.sys/bus_sdl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
> index 03e7cb3e2ba2..159727f6bce4 100644
> --- a/dlls/winebus.sys/bus_sdl.c
> +++ b/dlls/winebus.sys/bus_sdl.c
> @@ -910,7 +910,7 @@ static DWORD CALLBACK deviceloop_thread(void *args)
>
> if (pSDL_Init(SDL_INIT_GAMECONTROLLER|SDL_INIT_HAPTIC) < 0)
> {
> - ERR("Can't Init SDL\n");
> + ERR("Can't init SDL: %s\n", pSDL_GetError());
> return STATUS_UNSUCCESSFUL;
> }
>
>
More information about the wine-devel
mailing list