x11drv: Prevent NULL dereferencre.

Vitaliy Margolen wine-patch at kievinfo.com
Thu Jan 19 23:15:43 CST 2006


ChangeLog:
x11drv: Prevent NULL dereferencre.
Fixes Bug 4347.

 dlls/x11drv/clipboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
fcbb8b79bc0ebc0face3a74bec8f8f01eefddf85
diff --git a/dlls/x11drv/clipboard.c b/dlls/x11drv/clipboard.c
index 2d53a55..3821c2c 100644
--- a/dlls/x11drv/clipboard.c
+++ b/dlls/x11drv/clipboard.c
@@ -2795,7 +2795,7 @@ static Atom X11DRV_SelectionRequest_TARG
      */
     cTargets = 1; /* Include TARGETS */
 
-    lpData = ClipData;
+    if (!(lpData = ClipData)) return None;
 
     do
     {


More information about the wine-patches mailing list