Xming, Cygwin/X: Fix crash in function winMultiWindowGetTransientFor() (#11147)

The function winMultiWindowGetTransientFor() crashes, due to a bogus pointer
dereference, but this fact was previously hidden by the function not being called!

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
Colin Harrison 2008-12-17 16:44:07 +00:00 committed by Jon TURNEY
parent 08a3d6928c
commit 15c4a6e088

View File

@ -263,7 +263,7 @@ winMultiWindowGetTransientFor (WindowPtr pWin, WindowPtr *ppDaddy)
if (prop->propertyName == XA_WM_TRANSIENT_FOR)
{
if (ppDaddy)
memcpy (*ppDaddy, prop->data, sizeof (WindowPtr));
memcpy (ppDaddy, prop->data, sizeof (WindowPtr));
return 1;
}
else