Browse Source

Merge pull request #9564 from dzmat/littlfix

Replace magic number with system define.
adaptive-webui-19844
sledgehammer999 6 years ago committed by GitHub
parent
commit
76f186f395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/utils/misc.cpp

2
src/base/utils/misc.cpp

@ -581,7 +581,7 @@ QString Utils::Misc::libtorrentVersionString() @@ -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…
Cancel
Save