mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 10:25:31 +00:00
Fixed crash if dbus can't be initialized
(cherry picked from commit cf2c6fa58dea02edb870cff7090fd69f3dfbd081)
This commit is contained in:
parent
22685556e5
commit
57043825ba
|
@ -278,7 +278,8 @@ static SDL_bool FcitxCreateInputContext(SDL_DBusContext *dbus, const char *appna
|
||||||
{
|
{
|
||||||
const char *program = "program";
|
const char *program = "program";
|
||||||
SDL_bool retval = SDL_FALSE;
|
SDL_bool retval = SDL_FALSE;
|
||||||
if (dbus->session_conn) {
|
|
||||||
|
if (dbus && dbus->session_conn) {
|
||||||
DBusMessage *msg = dbus->message_new_method_call(FCITX_DBUS_SERVICE, FCITX_IM_DBUS_PATH, FCITX_IM_DBUS_INTERFACE, "CreateInputContext");
|
DBusMessage *msg = dbus->message_new_method_call(FCITX_DBUS_SERVICE, FCITX_IM_DBUS_PATH, FCITX_IM_DBUS_INTERFACE, "CreateInputContext");
|
||||||
if (msg) {
|
if (msg) {
|
||||||
DBusMessage *reply = NULL;
|
DBusMessage *reply = NULL;
|
||||||
|
|
Loading…
Reference in a new issue