mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Avoid a crash in gtk_im_context_ime_reset
When GTK+ runs with inputim-ime.dll module, there is NULL pointer reference. Because "context_ime->client_window" may be NULL in gtk_im_context_ime_reset. https://bugzilla.gnome.org/show_bug.cgi?id=644906
This commit is contained in:
parent
3ef2e36637
commit
74f57ee04d
@ -348,6 +348,9 @@ gtk_im_context_ime_reset (GtkIMContext *context)
|
||||
HWND hwnd;
|
||||
HIMC himc;
|
||||
|
||||
if (!context_ime->client_window)
|
||||
return;
|
||||
|
||||
hwnd = GDK_WINDOW_HWND (context_ime->client_window);
|
||||
himc = ImmGetContext (hwnd);
|
||||
if (!himc)
|
||||
|
Loading…
Reference in New Issue
Block a user