mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Runner: move Launcher to its own folder and simplify dll loading (#4379)
This commit is contained in:
@@ -7,9 +7,9 @@ std::map<std::wstring, PowertoyModule>& modules()
|
||||
return modules;
|
||||
}
|
||||
|
||||
PowertoyModule load_powertoy(const std::wstring& filename)
|
||||
PowertoyModule load_powertoy(const std::wstring_view filename)
|
||||
{
|
||||
auto handle = winrt::check_pointer(LoadLibraryW(filename.c_str()));
|
||||
auto handle = winrt::check_pointer(LoadLibraryW(filename.data()));
|
||||
auto create = reinterpret_cast<powertoy_create_func>(GetProcAddress(handle, "powertoy_create"));
|
||||
if (!create)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user