On 01/25/2013 06:23 AM, Timothy Wall wrote:
> In contrib/platform/test/com/sun/jna/platform/win32/Wtsapi32Test.java:
>
>> @@ -21,7 +21,7 @@ public static void main(String[] args) {
>>  	public Wtsapi32Test() {
>>  		Frame frame = new Frame();
>>  		frame.setVisible(true);
>> -		this.peer = ((WComponentPeer) frame.getPeer()).getHWnd();
>> +		this.peer = Native.getWindowID(frame);
>
> Use |new HWND(Native.getComponentPointer(frame))|
>
> No need to hang on to the peer.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/twall/jna/pull/186/files#r2772904>.
>

will do.