diff --git a/CHANGELOG.md b/CHANGELOG.md index f981daff..79632a40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed memory leak in sbiesvc - fixed issue with inconsistent WFP option application [#3900](https://github.com/sandboxie-plus/Sandboxie/issues/3900) - fixed resource leak in buffer hashing function +- fixed DLL name corruption when BlockInterferenceControl is enabled [#3945](https://github.com/sandboxie-plus/Sandboxie/issues/3945) diff --git a/Sandboxie/core/dll/gui.c b/Sandboxie/core/dll/gui.c index 90dec74e..b94a1026 100644 --- a/Sandboxie/core/dll/gui.c +++ b/Sandboxie/core/dll/gui.c @@ -1950,11 +1950,11 @@ _FX BOOL Gui_MoveWindow( typedef BOOL (*P_SystemParametersInfoA)(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni); static P_SystemParametersInfoA SystemParametersInfoA = NULL; - if (!SystemParametersInfoA) SystemParametersInfoA = Ldr_GetProcAddrNew("user32.dll", "SystemParametersInfoA", "SystemParametersInfoA"); + if (!SystemParametersInfoA) SystemParametersInfoA = Ldr_GetProcAddrNew(L"user32.dll", L"SystemParametersInfoA", "SystemParametersInfoA"); typedef int (*P_GetSystemMetrics)(int nIndex); static P_GetSystemMetrics GetSystemMetrics = NULL; - if (!GetSystemMetrics) GetSystemMetrics = Ldr_GetProcAddrNew("user32.dll", "GetSystemMetrics", "GetSystemMetrics"); + if (!GetSystemMetrics) GetSystemMetrics = Ldr_GetProcAddrNew(L"user32.dll", L"GetSystemMetrics", "GetSystemMetrics"); if (SystemParametersInfoA && GetSystemMetrics) { @@ -2005,11 +2005,11 @@ _FX BOOL Gui_SetWindowPos( typedef BOOL (*P_SystemParametersInfoA)(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni); static P_SystemParametersInfoA SystemParametersInfoA = NULL; - if (!SystemParametersInfoA) SystemParametersInfoA = Ldr_GetProcAddrNew("user32.dll", "SystemParametersInfoA", "SystemParametersInfoA"); + if (!SystemParametersInfoA) SystemParametersInfoA = Ldr_GetProcAddrNew(L"user32.dll", L"SystemParametersInfoA", "SystemParametersInfoA"); typedef int (*P_GetSystemMetrics)(int nIndex); static P_GetSystemMetrics GetSystemMetrics = NULL; - if (!GetSystemMetrics) GetSystemMetrics = Ldr_GetProcAddrNew("user32.dll", "GetSystemMetrics", "GetSystemMetrics"); + if (!GetSystemMetrics) GetSystemMetrics = Ldr_GetProcAddrNew(L"user32.dll", L"GetSystemMetrics", "GetSystemMetrics"); if (SystemParametersInfoA && GetSystemMetrics) {