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:
parent
08a3d6928c
commit
15c4a6e088
|
@ -263,7 +263,7 @@ winMultiWindowGetTransientFor (WindowPtr pWin, WindowPtr *ppDaddy)
|
||||||
if (prop->propertyName == XA_WM_TRANSIENT_FOR)
|
if (prop->propertyName == XA_WM_TRANSIENT_FOR)
|
||||||
{
|
{
|
||||||
if (ppDaddy)
|
if (ppDaddy)
|
||||||
memcpy (*ppDaddy, prop->data, sizeof (WindowPtr));
|
memcpy (ppDaddy, prop->data, sizeof (WindowPtr));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue