diff --git a/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h b/dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h index 524a715e46..edfbfebdf7 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 = + LoadLibraryEx(libName, NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS); #endif }