Fixed potential memory corruption in EVENT_QueryZOrder.

Fixed potential X synchronization problem in X11DRV_WND_SetHostAttr.
This commit is contained in:
Ulrich Weigand 1999-06-05 11:49:04 +00:00 committed by Alexandre Julliard
parent e40c9b0a94
commit 2bb2d9b008
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ static Window __get_common_ancestor( Window A, Window B,
TSXQueryTree( display, A, &root, &A, children, total );
TSXQueryTree( display, B, &root, &B, &childrenB, &totalB );
if( childrenB ) TSXFree( childrenB );
if( *children ) TSXFree( *children );
if( *children ) TSXFree( *children ), *children = NULL;
} while( A != B && A && B );
if( A && B )

View File

@ -812,7 +812,7 @@ BOOL X11DRV_WND_SetHostAttr(WND* wnd, INT ha, INT value)
else
{
XEvent xe;
XMapWindow(display, w );
TSXMapWindow(display, w );
while( !TSXCheckTypedWindowEvent( display, w, MapNotify, &xe) );
}
}