winAccess should check ERROR_PATH_NOT_FOUND in the same way as 
ERROR_FILE_NOT_FOUND. The former error code is returned for example by WinRT 
when checking for directory existence. (I just got it when checking for 
application folder existence, but as far I remember, it is returned in more 
scenarios.)

Error manifestation: Sqlite reports i/o error instead of missing file.

Resolution: Rather trivial fix in winAccess():

Original line:
    if( lastErrno != ERROR_FILE_NOT_FOUND ){
Corrected line:
    if( lastErrno != ERROR_FILE_NOT_FOUND  &&  lastErrno != 
ERROR_PATH_NOT_FOUND ){


Have a good day.

With best regards,
   Jan Slodicka
   Resco
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to