Author: brett
Date: Fri Jul 11 09:54:21 2014
New Revision: 1609659

URL: http://svn.apache.org/r1609659
Log:
fix count of subkeys

[0] is subkeys, [2] is number of values

Modified:
    
incubator/npanday/trunk/components/dotnet-registry/src/main/java/npanday/registry/impl/WinRegistry.java

Modified: 
incubator/npanday/trunk/components/dotnet-registry/src/main/java/npanday/registry/impl/WinRegistry.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-registry/src/main/java/npanday/registry/impl/WinRegistry.java?rev=1609659&r1=1609658&r2=1609659&view=diff
==============================================================================
--- 
incubator/npanday/trunk/components/dotnet-registry/src/main/java/npanday/registry/impl/WinRegistry.java
 (original)
+++ 
incubator/npanday/trunk/components/dotnet-registry/src/main/java/npanday/registry/impl/WinRegistry.java
 Fri Jul 11 09:54:21 2014
@@ -460,7 +460,7 @@ public class WinRegistry
         }
         int[] info = (int[]) regQueryInfoKey.invoke( root, new Object[]{ new 
Integer( handles[0] ) } );
 
-        int count = info[2]; // count
+        int count = info[0]; // count
         int maxlen = info[3]; // value length max
         for ( int index = 0; index < count; index++ )
         {


Reply via email to