mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
fix wrong dll path
(cherry picked from commit 7aa20a47843a3e747c484afb27d37ad57f08c1fb)
This commit is contained in:
parent
2131c658d8
commit
23189c8726
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ void wxMediaCtrl2::Load(wxURI url)
|
|||
[dll_path] {
|
||||
int res = wxMessageBox(_L("BambuSource has not correctly been registered for media playing! Press Yes to re-register it."), _L("Error"), wxYES_NO);
|
||||
if (res == wxYES) {
|
||||
SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"runas", L"regsvr32", dll_path.wstring().c_str(), SW_HIDE };
|
||||
wstring quoted_dll_path = L"\"" + dll_path.wstring() + "\"";
|
||||
SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"runas", L"regsvr32", quoted_dll_path.c_str(), SW_HIDE };
|
||||
::ShellExecuteEx(&info);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue