winebus: Print SDL error message when SDL cannot be initialized.

SDL_Init(SDL_INIT_HAPTIC) fails if SDL is built without haptic support.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Józef Kucia 2018-05-11 10:06:40 +02:00 committed by Alexandre Julliard
parent 387ba1d605
commit 142169960a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}