Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 94ecef9

Browse files
committed
specify the path when loading combase works better
1 parent bd7b7c5 commit 94ecef9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/dev/dirs/impl/Windows.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ private Windows() {}
2222

2323
static {
2424
if (Constants.operatingSystem == 'w') {
25-
System.loadLibrary("combase");
26-
System.loadLibrary("ole32");
27-
System.loadLibrary("shell32");
25+
String sysdir = System.getenv("WINDIR") + "/system32/";
26+
System.load(sysdir + "combase.dll");
27+
System.load(sysdir + "ole32.dll");
28+
System.load(sysdir + "shell32.dll");
2829
}
2930
}
3031

0 commit comments

Comments
 (0)