Diff of /libs/gtdrag/GTD_Drag.c [4fea5c] .. [261749]  Maximize  Restore

Switch to side-by-side view

--- a/libs/gtdrag/GTD_Drag.c
+++ b/libs/gtdrag/GTD_Drag.c
@@ -27,7 +27,7 @@
   adg = dg = NULL;  gdo = NULL;  boopsigad = NULL;
   mx = ~0L;
 
-  for(sdg = (APTR)gadlist.mlh_Head;ndg = (APTR)sdg->dg_Node.mln_Succ;sdg = ndg)
+  for(sdg = (APTR)gadlist.mlh_Head;(ndg = (APTR)sdg->dg_Node.mln_Succ) != 0;sdg = ndg)
   {
     if (sdg->dg_Flags & DGF_ONTHEFLY)     // remove temporary BOOPSI-gadgets
     {
@@ -67,7 +67,7 @@
     x = mousex+dg->dg_Window->LeftEdge;
     y = mousey+dg->dg_Window->TopEdge;
 
-    if (adg = GetAcceptorDragGadget(x,y))
+    if ((adg = GetAcceptorDragGadget(x,y)) != 0)
     {
       adg->dg_Flags |= DGF_LIKECURRENT;
 
@@ -87,5 +87,3 @@
   if (adg && UpdateHighlighting(IDCMP_INTUITICKS,mousex,mousey,adg))
     UpdateDragObj(gdo,mousex,mousey);
 }
-
-

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks