-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the way we load level zero DLL on windows. #636
Conversation
@@ -55,7 +55,8 @@ class DynamicLibHelper final | |||
#ifdef __linux__ | |||
_handle = dlopen(libName, flag); | |||
#elif defined(_WIN32) || defined(_WIN64) | |||
_handle = LoadLibraryA(libName); | |||
_handle = | |||
LoadLibraryExA(libName, nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should Windows include "libloaderapi.h" instead of "windows.h" ?
https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryexa
Can you rebase your changes on top of the current master, rather than release/0.10 ? |
53f0042
to
f9e2935
Compare
f9e2935
to
d43b799
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#638 runs the workflows and windows passes.
Merging after testing locally. |
Use
LoadLibraryExA
instead ofLoadLibraryA
to mitigate a possible DLL injection issue when we load the Level zero DLL on windows.