Skip to content

Commit d2788ca

Browse files
authored
Merge pull request #1721 from dbwiddis/fix-netgetdcname-args
Fix switched serverName/domainName arguments in Netapi32Util#getDCName
2 parents 27a0f4b + fe3a2fb commit d2788ca

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Bug Fixes
1414
---------
1515
* [#1644](https://github.com/java-native-access/jna/issues/1644): Fix bug in VARDESC and TYPEDESC causing an illegal memory access - [@lwahonen](https://github.com/lwahonen)
1616
* [#1715](https://github.com/java-native-access/jna/pull/1715): Fix `UdevDevice.getSysname()` calling `udev_device_get_syspath` instead of `udev_device_get_sysname` - [@dbwiddis](https://github.com/dbwiddis).
17+
* [#1721](https://github.com/java-native-access/jna/pull/1721): Fix switched `serverName`/`domainName` arguments in `Netapi32Util#getDCName` - [@dbwiddis](https://github.com/dbwiddis).
1718

1819
Release 5.18.1
1920
==============

contrib/platform/src/com/sun/jna/platform/win32/Netapi32Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static String getDCName() {
118118
public static String getDCName(String serverName, String domainName) {
119119
PointerByReference bufptr = new PointerByReference();
120120
try {
121-
int rc = Netapi32.INSTANCE.NetGetDCName(domainName, serverName, bufptr);
121+
int rc = Netapi32.INSTANCE.NetGetDCName(serverName, domainName, bufptr);
122122
if (LMErr.NERR_Success != rc) {
123123
throw new Win32Exception(rc);
124124
}

0 commit comments

Comments
 (0)