Fix Client Segfault
This commit is contained in:
parent
a04cf1e707
commit
ca911dd634
@ -449,18 +449,13 @@ static void x11_nop() {
|
||||
// NOP
|
||||
}
|
||||
HOOK(SDL_GetWMInfo, int, (SDL_SysWMinfo *info)) {
|
||||
if (!is_server) {
|
||||
ensure_SDL_GetWMInfo();
|
||||
return (*real_SDL_GetWMInfo)(info);
|
||||
} else {
|
||||
// Return Fake Lock Functions In Server Mode Since X11 Is Disabled
|
||||
// Return Fake Lock Functions In Server Mode Since SDL X11 Is Disabled
|
||||
SDL_SysWMinfo ret;
|
||||
ret.info.x11.lock_func = x11_nop;
|
||||
ret.info.x11.unlock_func = x11_nop;
|
||||
*info = ret;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user