Fix bug #18528 with crashes at startup during frameset restoration.
commita45a7f5d1aeed7845f56cf56382c625445fbb583
authorEli Zaretskii <eliz@gnu.org>
Wed, 24 Sep 2014 07:31:11 +0000 (24 10:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 24 Sep 2014 07:31:11 +0000 (24 10:31 +0300)
treeacb89f82bf711a67f928234e35871d8dd23cadda
parentfc5ebc3f497a152132407d57a14cce147d59d29c
Fix bug #18528 with crashes at startup during frameset restoration.

 src/w32term.c (w32_read_socket): Don't use frame dimensions for
 resizing if GetClientRect returned an empty (0, 0, 0, 0)
 rectangle.  Check the return value of GetClientRect, and don't use
 the results if it didn't succeed.
 src/dispnew.c (change_frame_size_1): Recompute the frame dimensions
 in columns and lines after correcting the pixel dimensions in
 check_frame_size.
 (adjust_decode_mode_spec_buffer): Add assertion to avoid passing
 negative values to xrealloc.
src/ChangeLog
src/dispnew.c
src/w32term.c