We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f6b36 commit 9a0e451Copy full SHA for 9a0e451
Client/loader/MainFunctions.cpp
@@ -946,20 +946,14 @@ void ValidateGTAPath()
946
// Detect if we are running under Wine
947
//
948
//////////////////////////////////////////////////////////
949
-int isUsingWine()
+bool isUsingWine()
950
{
951
HMODULE ntdll = GetModuleHandleA("ntdll.dll");
952
if (!ntdll)
953
- return 0; // Not ntdll? Not Wine.
+ return false;
954
955
- // Check for Wine-specific function
956
FARPROC wineVersion = GetProcAddress(ntdll, "wine_get_version");
957
- if (wineVersion)
958
- {
959
- return 1; // Is Wine.
960
- }
961
-
962
- return 0; // Not Wine.
+ return wineVersion != nullptr;
963
}
964
965
0 commit comments