mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-08 11:57:51 +08:00
Merge pull request #9564 from dzmat/littlfix
Replace magic number with system define.
This commit is contained in:
commit
76f186f395
@ -581,7 +581,7 @@ QString Utils::Misc::libtorrentVersionString()
|
||||
QString Utils::Misc::windowsSystemPath()
|
||||
{
|
||||
static const QString path = []() -> QString {
|
||||
WCHAR systemPath[64] = {0};
|
||||
WCHAR systemPath[MAX_PATH] = {0};
|
||||
GetSystemDirectoryW(systemPath, sizeof(systemPath) / sizeof(WCHAR));
|
||||
return QString::fromWCharArray(systemPath);
|
||||
}();
|
||||
|
Loading…
Reference in New Issue
Block a user