Hi!

19-Июн-2006 01:37 [EMAIL PROTECTED] (Blair Campbell) wrote to
[EMAIL PROTECTED]:

BC> +++ lfnfuncs.c      19 Jun 2006 01:37:06 -0000      1.3
BC> -    if( _CFLAG || _AX == 0x7100 )
BC> +    if( _CFLAG || ( buf->lfnax  = _AX ) == 0x7100 )
BC>          return( findfirst( path, ( struct ffblk * )buf, attr ) );
BC> -    buf->lfnax = _AX;              /* The find handle for findnext */

     Don't know why this (assigning _AX to .lfnax) is need, but should note,
that new code isn't identical to previous code. With previous code:

1. in case of "_CFLAG || _AX == 0x7100", .lfnax returned untouched,
2. else (below "if") .lfnax receives value of _AX.

With new code:

1. if "_CFLAG" - .lfnax retrned untouched.
2. if not "_CFLAG", then .lfnax receives _AX both for return and below "if".

Ie., difference is that if CF is set, but AX=0x7100, then returned now
modified .lfnax. And vice versa: if CF is set, then returned (as previously)
not modified .lfnax.


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to