diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 37747461f1..c277b4d83f 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -737,11 +737,11 @@ hipError_t hipGetDriverEntryPoint_common(const char* symbol, void** funcPtr, } *funcPtr = amd::Os::getSymbol(handle, symbolString.c_str()); - if (funcPtr == nullptr) { + if (*funcPtr == nullptr) { if (flags == hipEnablePerThreadDefaultStream) { *funcPtr = amd::Os::getSymbol(handle, symbol); } - if (funcPtr == nullptr) { + if (*funcPtr == nullptr) { if (status != nullptr) { *status = hipDriverEntryPointSymbolNotFound; }