mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Merge latest msvc fixes from stable branch
This commit is contained in:
@@ -283,7 +283,11 @@ int main(int argc, char *argv[]){
|
||||
}
|
||||
#endif
|
||||
// Set environment variable
|
||||
#if defined(Q_WS_WIN) && !defined(MINGW)
|
||||
if(SetEnvironmentVariableA("QBITTORRENT", VERSION)) {
|
||||
#else
|
||||
if(putenv((char*)"QBITTORRENT="VERSION)) {
|
||||
#endif
|
||||
std::cerr << "Couldn't set environment variable...\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user