Commit 04995ce9 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Don't overwrite last byte of the window structure as we might not have

allocated the memory for it if extrabytes was 0.
parent c5877960
......@@ -300,7 +300,7 @@ static void destroy_window( struct window *win )
if (win->update_region) free_region( win->update_region );
release_class( win->class );
if (win->text) free( win->text );
memset( win, 0x55, sizeof(*win) );
memset( win, 0x55, sizeof(*win) + win->nb_extra_bytes - 1 );
free( win );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment