Jump to content

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


Recommended Posts

Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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