mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Implement WINRT_IMPL_LoadLibraryW to avoid calling LoadLibraryW directly (#8065)
* Override load library w in cppwinrt * Add comment
This commit is contained in:
parent
e7d7fa8fa2
commit
839f69d249
1 changed files with 5 additions and 0 deletions
|
|
@ -134,3 +134,8 @@ STDAPI DllGetActivationFactory(HSTRING classId, void** factory) {
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// LoadLibraryW isn't support on Windows 8.1. This is a workaround so that CppWinRT calls this function for loading libraries
|
||||
void* __stdcall WINRT_IMPL_LoadLibraryW(wchar_t const* name) noexcept {
|
||||
return LoadLibraryExW(name, nullptr, 0);
|
||||
}
|
||||
Loading…
Reference in a new issue