diff --git a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h b/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h index 524a715e46..864ef326a8 100644 --- a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h +++ b/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h @@ -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); #endif }