瀏覽代碼

Disable Nahimic code injection.

(cherry picked from commit 8bb3e5360ed21ae89d53cdc3fb1c0dbc756262bb)
bruvzg 9 月之前
父節點
當前提交
ff5ff386c5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      platform/windows/os_windows.cpp

+ 1 - 0
platform/windows/os_windows.cpp

@@ -58,6 +58,7 @@ static const WORD MAX_CONSOLE_LINES = 1500;
 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