Jump to content

[BUG+FIX] GUI for WriteRegKey doesn't write REG_MULTI_SZ correctly


Recommended Posts

Cause

The WriteRegKey expects an array and not a string for REG_MULTI_SZ values.

Fix

Replace the following line in the HideWriteRegKey2 function of configwizard_wizards.js

		txt += ',"'+document.getElementById("ValueData").value.replace(/\r/g," ")+'"';

with

		txt += ',new Array("'+document.getElementById("ValueData").value.replace(/\r/g,'", "')+'")';

or alternatively

		txt += ',["'+document.getElementById("ValueData").value.replace(/\r/g,'", "')+'"]';

Edited by Francesco
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...