mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 00:06:16 -07:00
Replace magic number with system define
This commit is contained in:
parent
5a638e4d28
commit
fc93f2eb78
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…
Add table
Add a link
Reference in a new issue