Skip to content

Commit

Permalink
No error means success.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Feb 11, 2025
1 parent cf83d9a commit a06e92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeApi/Runtime/NativeLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static bool TryGetExport(nint handle, string name, out nint procAddress)
{
dlerror();
procAddress = dlsym(handle, name);
return dlerror() != 0;
return dlerror() == 0;
}
#else
return SysNativeLibrary.TryGetExport(handle, name, out procAddress);
Expand Down

0 comments on commit a06e92b

Please sign in to comment.