зеркало из https://github.com/electron/electron.git
Fixes for windows
This commit is contained in:
Родитель
be6599807d
Коммит
dec05988f4
|
@ -78,9 +78,16 @@ std::string App::GetDataPath() {
|
|||
CHECK(PathService::Get(base::DIR_APP_DATA, &path));
|
||||
#endif
|
||||
|
||||
base::FilePath dataPath = path.Append(base::FilePath::FromUTF8Unsafe(Browser::Get()->GetName()));
|
||||
base::FilePath data_path = path.Append(
|
||||
base::FilePath::FromUTF8Unsafe(Browser::Get()->GetName()));
|
||||
|
||||
return dataPath.value();
|
||||
// FilePath.value() returns a std::wstring in windows and
|
||||
// std::string on other platforms.
|
||||
std::vector<char> writable(data_path.value().begin(),
|
||||
data_path.value().end());
|
||||
writable.push_back('\0');
|
||||
|
||||
return &writable[0];
|
||||
}
|
||||
|
||||
mate::ObjectTemplateBuilder App::GetObjectTemplateBuilder(
|
||||
|
|
Загрузка…
Ссылка в новой задаче