Mercurial > emacs
diff src/w32term.c @ 48888:f0df5f687c15
Revisited my earlier fix for the following entry in etc/PROBLEMS: 'Emacs built on Windows 9x/ME crashes at startup on Windows XP, or Emacs builtpart of on XP crashes at startup on Windows 9x/ME.' Fixed several Windows API errors detected by BoundsChecker
author | Ben Key <bkey1@tampabay.rr.com> |
---|---|
date | Wed, 18 Dec 2002 06:16:28 +0000 |
parents | c7fb53597300 |
children | c73ce11bb264 |
line wrap: on
line diff
--- a/src/w32term.c Wed Dec 18 05:16:09 2002 +0000 +++ b/src/w32term.c Wed Dec 18 06:16:28 2002 +0000 @@ -603,8 +603,10 @@ struct w32_display_info *display_info = FRAME_W32_DISPLAY_INFO (f); /* Hide the system caret during an update. */ - if (w32_use_visible_system_caret) - SendMessage (w32_system_caret_hwnd, WM_EMACS_HIDE_CARET, 0, 0); + if (w32_use_visible_system_caret && w32_system_caret_hwnd) + { + SendMessage (w32_system_caret_hwnd, WM_EMACS_HIDE_CARET, 0, 0); + } updated_window = w; set_output_cursor (&w->cursor); @@ -730,8 +732,10 @@ /* Unhide the caret. This won't actually show the cursor, unless it was visible before the corresponding call to HideCaret in x_update_window_begin. */ - if (w32_use_visible_system_caret) - SendMessage (w32_system_caret_hwnd, WM_EMACS_SHOW_CARET, 0, 0); + if (w32_use_visible_system_caret && w32_system_caret_hwnd) + { + SendMessage (w32_system_caret_hwnd, WM_EMACS_SHOW_CARET, 0, 0); + } updated_window = NULL; }