Make sure that xFullPathname uses SQLITE_OK as its return value for success (and SQLITE_IOERR for failure)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4003 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
add956c36d
commit
dd0655b915
|
@ -21,8 +21,10 @@
|
|||
distribution.
|
||||
*/
|
||||
|
||||
// These are necessary for the `bool' type
|
||||
#include "lib/framework/frame.h"
|
||||
#include "lib/framework/strlfuncs.h"
|
||||
|
||||
#include "physfs_vfs.h"
|
||||
#include "sqlite3.h"
|
||||
#include <physfs.h>
|
||||
|
@ -289,7 +291,7 @@ static int xGetTempname(sqlite3_vfs* pVfs, int nOut, char* zOut)
|
|||
*/
|
||||
static int xFullPathname(sqlite3_vfs* pVfs, const char* zName, int nOut, char* zOut)
|
||||
{
|
||||
return (strlcpy(zOut, zName, nOut) < nOut);
|
||||
return (strlcpy(zOut, zName, nOut) < nOut) ? SQLITE_OK : SQLITE_IOERR;
|
||||
}
|
||||
|
||||
static void* xDlOpen(sqlite3_vfs* pVfs, const char* zFilename)
|
||||
|
|
Loading…
Reference in New Issue