From 2f974e7e6e7acc1db133363be99545ff9c462386 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Wed, 18 Jan 2012 20:47:15 +0400 Subject: [PATCH] fix discover method --- miniupnpc/java/JavaBridgeTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpc/java/JavaBridgeTest.java b/miniupnpc/java/JavaBridgeTest.java index 62bba34..77420b6 100644 --- a/miniupnpc/java/JavaBridgeTest.java +++ b/miniupnpc/java/JavaBridgeTest.java @@ -27,7 +27,7 @@ public class JavaBridgeTest { return; } - devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, null); + devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, IntBuffer.allocate(1)); if (devlist != null) { System.out.println("List of UPNP devices found on the network :"); for (UPNPDev device = devlist; device != null; device = device.pNext) {