mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Bug 2688 - Bad saves with Unicode project filenames
This commit is contained in:
@@ -82,12 +82,12 @@ void DBConnection::SetDBError(
|
||||
printf(" Lib error: %s", mpErrors->mLibraryError.Debug().mb_str().data());
|
||||
}
|
||||
|
||||
bool DBConnection::Open(const char *fileName)
|
||||
bool DBConnection::Open(const FilePath fileName)
|
||||
{
|
||||
wxASSERT(mDB == nullptr);
|
||||
int rc;
|
||||
|
||||
rc = sqlite3_open(fileName, &mDB);
|
||||
rc = sqlite3_open(fileName.ToUTF8(), &mDB);
|
||||
if (rc != SQLITE_OK)
|
||||
{
|
||||
sqlite3_close(mDB);
|
||||
|
||||
Reference in New Issue
Block a user