Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.1</version>
<version>5.6.0</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>4.5.1</version>
<version>5.6.0</version>
</dependency>
<dependency>
<groupId>org.ini4j</groupId>
Expand All @@ -97,12 +97,12 @@
<dependency>
<groupId>org.javadelight</groupId>
<artifactId>delight-nashorn-sandbox</artifactId>
<version>0.1.14</version>
<version>0.1.28</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<version>1.7.30</version>
</dependency>

<!-- test dependencies -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.markusbernhardt.proxy.jna.win;

import com.github.markusbernhardt.proxy.util.Logger;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.Kernel32;
import com.sun.jna.platform.win32.WTypes;
Expand Down Expand Up @@ -39,7 +40,7 @@ private WTypes2() {}
public static class LPWSTRByReference extends ByReference {

public LPWSTRByReference() {
super(Pointer.SIZE);
super(Native.POINTER_SIZE);
// memory cleanup
getPointer().setPointer(0, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public interface WinHttp extends StdCallLibrary {

WinHttp INSTANCE = (WinHttp) Native.loadLibrary("winhttp", WinHttp.class, W32APIOptions.UNICODE_OPTIONS);
WinHttp INSTANCE = (WinHttp) Native.load("winhttp", WinHttp.class, W32APIOptions.UNICODE_OPTIONS);

/**
* Use DHCP to locate the proxy auto-configuration file.
Expand Down