Skip to content

Commit 9ce9fc8

Browse files
stolarczyktmatthiasblaesing
authored andcommitted
Fix for free data handle in DdemlUtil.
Adding additional comment for DdeAccessData binding.
1 parent 333cc61 commit 9ce9fc8

3 files changed

Lines changed: 3 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
* [#754](https://github.com/java-native-access/jna/issues/754): Move MSVC build to standard stdbool.h and require Visual C++ 2015 (sizeof(bool) = 1 is now also true on MSVC build) - [@matthiasblaesing](https://github.com/matthiasblaesing).
1515
* [#399](https://github.com/java-native-access/jna/issues/399): Check native version before attempting to call into native code - [@matthiasblaesing](https://github.com/matthiasblaesing).
1616
* [#763](https://github.com/java-native-access/jna/issues/763): Fix vararg calls without fixed parts - [@matthiasblaesing](https://github.com/matthiasblaesing).
17+
* [#770](https://github.com/java-native-access/jna/pull/770): Fix for free data handle in DdemlUtil. - [@stolarczykt](https://github.com/stolarczykt).
1718

1819
Release 4.3.0
1920
=============

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,6 +2561,7 @@ public HDDEDATA DdeCreateDataHandle(
25612561
public int DdeGetData(HDDEDATA hData, Pointer pDst, int cbMax, int cbOff);
25622562

25632563
/**
2564+
* Provides access to the data in the specified Dynamic Data Exchange (DDE) object.
25642565
* An application must call the DdeUnaccessData function when it has
25652566
* finished accessing the data in the object.
25662567
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public Ddeml.HDDEDATA createDataHandle(Pointer pSrc, int cb, int cbOff, Ddeml.HS
731731
}
732732

733733
public void freeDataHandle(Ddeml.HDDEDATA hData) {
734-
boolean result = Ddeml.INSTANCE.DdeUnaccessData(hData);
734+
boolean result = Ddeml.INSTANCE.DdeFreeDataHandle(hData);
735735
if(! result) {
736736
throw DdemlException.create(getLastError());
737737
}

0 commit comments

Comments
 (0)