summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2008-12-17 16:44:07 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2008-12-18 12:37:14 +0000
commit15c4a6e088039e14b4f2387ff204cb5448916b39 (patch)
tree8dfd1b0870f805ab1fb38d24d05ff8d7b390f79d
parent08a3d6928c87032998b6113d67f69b79b09eecee (diff)
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>
-rwxr-xr-xhw/xwin/winmultiwindowclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winmultiwindowclass.c b/hw/xwin/winmultiwindowclass.c
index 5b47c3976..a5cf2120a 100755
--- a/hw/xwin/winmultiwindowclass.c
+++ b/hw/xwin/winmultiwindowclass.c
@@ -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