diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-18 20:54:32 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-30 17:46:32 -0700 |
| commit | e601bc55327d61a4655c3867fe2f31d2ec1bc634 (patch) | |
| tree | 94badf98e9326287603feef2bae4252c7b6717d8 /Source/Core | |
| parent | 0a63340c205ab21dab42ad616c67868c41ae5c06 (diff) | |
windows: keep an extra reference to BluetoothApis.dll
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/WiimoteReal/IOWin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp index 74cfe5cb88..ba69ea01e4 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp @@ -24,6 +24,7 @@ #include "Common/CommonFuncs.h" #include "Common/CommonTypes.h" +#include "Common/DynamicLibrary.h" #include "Common/Logging/Log.h" #include "Common/ScopeGuard.h" #include "Common/Thread.h" @@ -168,6 +169,7 @@ bool load_bthprops() void init_lib() { static bool initialized = false; + static Common::DynamicLibrary bt_api_lib; if (!initialized) { @@ -182,6 +184,10 @@ void init_lib() return; } + // Try to incref on this dll to prevent it being reloaded continuously (caused by + // BluetoothFindFirstRadio) + bt_api_lib.Open("BluetoothApis.dll"); + s_loaded_ok = true; } } |
