[Pocketgames-devel] SF.net SVN: pocketgames: [211] libraries/cab/src/org/pocketgames/cab/ installd
Status: Beta
Brought to you by:
idominguez
|
From: <ido...@us...> - 2008-01-12 03:49:00
|
Revision: 211
http://pocketgames.svn.sourceforge.net/pocketgames/?rev=211&view=rev
Author: idominguez
Date: 2008-01-11 19:47:30 -0800 (Fri, 11 Jan 2008)
Log Message:
-----------
PrinterREGKEY will print the value when calculated
Modified Paths:
--------------
libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java
Modified: libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java
===================================================================
--- libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java 2008-01-12 03:47:06 UTC (rev 210)
+++ libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java 2008-01-12 03:47:30 UTC (rev 211)
@@ -7,7 +7,8 @@
{
public static byte[] print (REGKEY r)
{
- int len = 10 + r.getString().length() + 1;
+ byte[] val = PrinterValue.print (r.getValue());
+ int len = 10 + r.getString().length() + 1 + val.length;
byte[] ret = new byte[len];
System.arraycopy (toWord16 (r.getId()), 0, ret, 0, 2);
System.arraycopy (toWord16 (r.getHiveId()), 0, ret, 2, 2);
@@ -16,8 +17,7 @@
byte[] st = r.getString().getBytes();
System.arraycopy (st, 0, ret, 10, st.length);
ret[10 + st.length] = 0;
- // Value
- // ret[len-1] = 0;
+ System.arraycopy (val, 0, ret, 10+st.length+1, val.length);
return ret;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|