mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 01:06:03 +03:00
Merge pull request #9564 from dzmat/littlfix
Replace magic number with system define.
This commit is contained in:
commit
76f186f395
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ QString Utils::Misc::libtorrentVersionString()
|
||||||
QString Utils::Misc::windowsSystemPath()
|
QString Utils::Misc::windowsSystemPath()
|
||||||
{
|
{
|
||||||
static const QString path = []() -> QString {
|
static const QString path = []() -> QString {
|
||||||
WCHAR systemPath[64] = {0};
|
WCHAR systemPath[MAX_PATH] = {0};
|
||||||
GetSystemDirectoryW(systemPath, sizeof(systemPath) / sizeof(WCHAR));
|
GetSystemDirectoryW(systemPath, sizeof(systemPath) / sizeof(WCHAR));
|
||||||
return QString::fromWCharArray(systemPath);
|
return QString::fromWCharArray(systemPath);
|
||||||
}();
|
}();
|
||||||
|
|
Loading…
Reference in a new issue