 		}
 	}
 #endif
-	OSTRACE(("SIZE file=%p, pSize=%p, *pSize=%lld, rc=%s\n", file->h, size, *size, sqlite3ErrName(rc)));
+	OSTRACE(("SIZE file=%p, pSize=%p, *pSize=%lld, rc=%s\n", file->h, size, *size, runtimeErrName(rc)));
 	return rc;
 }
 

********************** End vsystemfile Methods *******************************
******************************************************************************/

/*
** This vector defines all the methods that can operate on an
** vsystemfile for win32.
*/
static const sqlite3_io_methods winIoMethod = {
	3,                              /* iVersion */
	winClose,                       /* xClose */
	winRead,                        /* xRead */
	winWrite,                       /* xWrite */
	winTruncate,                    /* xTruncate */
	winSync,                        /* xSync */
	winFileSize,                    /* xFileSize */
	winLock,                        /* xLock */
	winUnlock,                      /* xUnlock */
	winCheckReservedLock,           /* xCheckReservedLock */
	winFileControl,                 /* xFileControl */
	winSectorSize,                  /* xSectorSize */
	winDeviceCharacteristics,       /* xDeviceCharacteristics */
	winShmMap,                      /* xShmMap */
	winShmLock,                     /* xShmLock */
	winShmBarrier,                  /* xShmBarrier */
	winShmUnmap,                    /* xShmUnmap */
	winFetch,                       /* xFetch */
	winUnfetch                      /* xUnfetch */
};

/*
** This vector defines all the methods that can operate on an
** vsystemfile for win32 without performing any locking.
*/
static const sqlite3_io_methods winIoNolockMethod = {
	3,                              /* iVersion */
	winClose,                       /* xClose */
	winRead,                        /* xRead */
	winWrite,                       /* xWrite */
	winTruncate,                    /* xTruncate */
	winSync,                        /* xSync */
	winFileSize,                    /* xFileSize */
	winNolockLock,                  /* xLock */
	winNolockUnlock,                /* xUnlock */
	winNolockCheckReservedLock,     /* xCheckReservedLock */
	winFileControl,                 /* xFileControl */
	winSectorSize,                  /* xSectorSize */
	winDeviceCharacteristics,       /* xDeviceCharacteristics */
	winShmMap,                      /* xShmMap */
	winShmLock,                     /* xShmLock */
	winShmBarrier,                  /* xShmBarrier */
	winShmUnmap,                    /* xShmUnmap */
	winFetch,                       /* xFetch */
	winUnfetch                      /* xUnfetch */
};

static winVfsAppData winAppData = {
	&winIoMethod,       /* pMethod */
	0,                  /* pAppData */
	0                   /* bNoLock */
};

static winVfsAppData winNolockAppData = {
	&winIoNolockMethod, /* pMethod */
	0,                  /* pAppData */
	1                   /* bNoLock */
};

#pragma endregion

	OSTRACE(("READ-UNLOCK file=%p, result=%d\n", file->h, res));
	return res;
}

/*
** Lock the file with the lock specified by parameter locktype - one of the following:
