clip fewer children

lawson_whitney at juno.com lawson_whitney at juno.com
Thu Jun 14 09:35:05 CDT 2001


Good day!

This is just a knee-jerk reaction to a null-pointer dereference, but it
makes my app run again.  If somebody figures out how to stop the pointer
being null in the first place, maybe that is a better way.  I'll send a
backtrace to wine-devel.

ChangeLog:
	* dlls/x11drv/winpos.c:
	Lawson Whitney <lawson_whitney at juno.com>
	Don't try to clip children that aren't there.

Or, if you prefer,

ChangeLog:
	* dlls/x11drv/winpos.c:
	Lawson Whitney <lawson_whitney at juno.com>
	Protect against null-pointer dereference.


Regards,

Lawson
-------------- next part --------------
diff -urN was/dlls/x11drv/winpos.c is/dlls/x11drv/winpos.c
--- was/dlls/x11drv/winpos.c	Thu Jun 14 00:29:36 2001
+++ is/dlls/x11drv/winpos.c	Thu Jun 14 09:39:07 2001
@@ -78,7 +78,7 @@
     else x = y = 0;
 
     rectRgn = CreateRectRgn( 0, 0, 0, 0 );
-    while (ptr != last)
+    while ((ptr) && (ptr != last))
     {
         if (ptr->dwStyle & WS_VISIBLE)
         {


More information about the wine-patches mailing list