home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   MAKENL_NG      MakeNL Next Generation.      1,725 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 294 of 1,725   
   mark lewis to Wilfred van Velzen   
   Bug found in osmscfnd.c   
   09 Nov 12 12:49:47   
   
    WvV>> In line 15 of osmscfnd.c it says:   
      
    WvV>>     if (pff->handle == 0)   
      
    WvV>> This should be:   
      
    WvV>>     if (pff->handle == -1)   
      
    WvV>> Because _findfirst() returns a -1 on error:   
      
    ml> or if (pff->handle > -1)   
      
    ml> right?? do we want to look for a specific equal result or do we want to   
    ml> look for a result greater than -1??   
      
    WvV> The specs clearly say it returns -1 on error. So other negative   
    WvV> values could be valid handle values.   
      
   yeah, i got distracted and sent that before making the example i was really   
   trying to write... that was:   
      
     if (pff->handle < 0)   
      
   i can't say that i've even really known negative values to be non-error   
   related... but that's ok... you guys caught it and fixed it :)   
      
   )\/(ark   
      
    * Origin:  (1:3634/12)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca