Hi Xavi,

> Yes, you're right.
> I have another patch to fix this, IMHO a issue, but I don't have right to 
> commit it, there are two differents points of view and few opinions. Please 
> note that GTWIN behavior is the same as a Clipper program under NTVDM.
> 
> --- .patch
> Index: gtwin.c
> ===================================================================
> --- gtwin.c   (revision 14052)
> +++ gtwin.c   (working copy)
> @@ -563,7 +563,9 @@
> 
>       case CTRL_CLOSE_EVENT:
>       case CTRL_BREAK_EVENT:
> -         s_bBreak = HB_TRUE;
> +         /* Avoid irregular shutdown if SetCancel( .F. ) [jarabal] */
> +         if( hb_setGetCancel() )
> +            s_bBreak = HB_TRUE;
>          bHandled = TRUE;
>          break;

Did you test this code?

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to