Skip to content

Commit

Permalink
Load Kernel32
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Sep 28, 2023
1 parent c22caa7 commit 2e34c59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/fusesource/jansi/ffm/Kernel32.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ public static String getErrorMessage(int errorCode) {
private static final SymbolLookup SYMBOL_LOOKUP;

static {
System.loadLibrary("Kernel32");
SymbolLookup loaderLookup = SymbolLookup.loaderLookup();
SYMBOL_LOOKUP =
name -> loaderLookup.find(name).or(() -> LINKER.defaultLookup().find(name));
Expand Down

0 comments on commit 2e34c59

Please sign in to comment.