fix discover method

This commit is contained in:
Alexey Kuznetsov 2012-01-18 20:47:15 +04:00
parent 3917487cb4
commit 2f974e7e6e
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class JavaBridgeTest {
return; 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) { if (devlist != null) {
System.out.println("List of UPNP devices found on the network :"); System.out.println("List of UPNP devices found on the network :");
for (UPNPDev device = devlist; device != null; device = device.pNext) { for (UPNPDev device = devlist; device != null; device = device.pNext) {