mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Fix profile startup failure when non-ASCII characters are in the profile path name (bug 324311). Thanks to Nickolay Ponomarev <asqueella@gmail.com> for the patch; r=bryner, a181=bryner.
This commit is contained in:
parent
189f26cded
commit
11b16050d0
@ -97,11 +97,11 @@ mozStorageConnection::Initialize(nsIFile *aDatabaseFile)
|
||||
mDatabaseFile = aDatabaseFile;
|
||||
|
||||
if (aDatabaseFile) {
|
||||
nsCAutoString nativePath;
|
||||
rv = aDatabaseFile->GetNativePath(nativePath);
|
||||
nsAutoString path;
|
||||
rv = aDatabaseFile->GetPath(path);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
srv = sqlite3_open (nativePath.get(), &mDBConn);
|
||||
srv = sqlite3_open16 (path.get(), &mDBConn);
|
||||
} else {
|
||||
// in memory database requested, sqlite uses a magic file name
|
||||
srv = sqlite3_open (":memory:", &mDBConn);
|
||||
|
Loading…
Reference in New Issue
Block a user