瀏覽代碼

get real func ptr.

Wang,Zhe 10 月之前
父節點
當前提交
badf975e45
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gpu/gpu_info_oneapi.c

+ 1 - 1
gpu/gpu_info_oneapi.c

@@ -50,7 +50,7 @@ void oneapi_init(char *oneapi_lib_path, oneapi_init_resp_t *resp) {
     LOG(resp->oh.verbose, "dlsym: %s\n", l[i].s);
 
     *l[i].p = LOAD_SYMBOL(resp->oh.handle, l[i].s);
-    if (!l[i].p) {
+    if (!*(l[i].p)) {
       resp->oh.handle = NULL;
       char *msg = LOAD_ERR();
       LOG(resp->oh.verbose, "dlerr: %s\n", msg);