Merge pull request #99388 from bruvzg/disable_nahimic

Disable Nahimic code injection.
This commit is contained in:
Thaddeus Crews 2024-11-18 09:23:40 -06:00
commit cc48a22b29
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -69,6 +69,7 @@
extern "C" { extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 1; __declspec(dllexport) DWORD NvOptimusEnablement = 1;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
__declspec(dllexport) void NoHotPatch() {} // Disable Nahimic code injection.
} }
// Workaround mingw-w64 < 4.0 bug // Workaround mingw-w64 < 4.0 bug