Skip to content

Commit 08f9e8d

Browse files
authored
Fix Advapi32#RegisterServiceCtrlHandler using wrong Handler type #1722
Fix Advapi32#RegisterServiceCtrlHandler using wrong Handler type
2 parents e75a0bf + bb90e20 commit 08f9e8d

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
@@ -17,6 +17,7 @@ Bug Fixes
1717
* [#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)
1818
* [#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).
1919
* [#1721](https://github.com/java-native-access/jna/pull/1721): Fix switched `serverName`/`domainName` arguments in `Netapi32Util#getDCName` - [@dbwiddis](https://github.com/dbwiddis).
20+
* [#1722](https://github.com/java-native-access/jna/pull/1722): Fix `Advapi32#RegisterServiceCtrlHandler` using wrong `Handler` type - [@dbwiddis](https://github.com/dbwiddis).
2021

2122
Release 5.18.1
2223
==============

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ boolean CreateProcessWithLogonW(String lpUsername, String lpDomain, String lpPas
33253325
* </table>
33263326
*/
33273327
public SERVICE_STATUS_HANDLE RegisterServiceCtrlHandler(String lpServiceName,
3328-
Handler lpHandlerProc);
3328+
Winsvc.Handler lpHandlerProc);
33293329

33303330
/**
33313331
* Registers a function to handle extended service control requests.

0 commit comments

Comments
 (0)