From 67eef6afc79b1e2a67402600dcb04e67567edfc6 Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Thu, 19 Dec 2024 21:40:12 -0800 Subject: [PATCH] fix build (2) --- onnxruntime/core/dll/delay_load_hook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/dll/delay_load_hook.cc b/onnxruntime/core/dll/delay_load_hook.cc index 79f1c8cffd115..bc5e1aa662721 100644 --- a/onnxruntime/core/dll/delay_load_hook.cc +++ b/onnxruntime/core/dll/delay_load_hook.cc @@ -67,7 +67,7 @@ FARPROC WINAPI delay_load_hook(unsigned dliNotify, PDelayLoadInfo pdli) { // Try to load the DLL from the same directory as onnxruntime.dll // First, get the path to onnxruntime.dll - auto path = Env::Default().GetRuntimePath(); + auto path = onnxruntime::Env::Default().GetRuntimePath(); if (path.empty()) { // Failed to get the path to onnxruntime.dll. In this case, we will just return NULL and let the system // search for the DLL in the default search order.