Fleex255 / PolicyPlus

Local Group Policy Editor plus more, for all Windows editions
Creative Commons Attribution 4.0 International
1.52k stars 109 forks source link

"Saving failed" error #44

Closed zdat closed 3 years ago

zdat commented 3 years ago

The error I receive is:

Saving failed!

The type of the value object did not match the specified RegistryValueKing or the object could not be properly converted.

I receive this error after going to File > Save Policies.

Have been using this program over the past couple of months and everything has been working fine but after doing some tweaking today I received this. Could this be related to a specific policy I changed?

Fleex255 commented 3 years ago

Apparently RegistryKey.SetValue expects signed integers for DWord values, so trying to write values larger than Int32.MaxValue (231 - 1) produces the error you received. I added a workaround in https://github.com/Fleex255/PolicyPlus/commit/e9611602d9a2d6b48426910ce8b1c1e2a85a4002. Please try the updated dev build to see if this fixes the problem.

zdat commented 3 years ago

It worked. Thank you for the very quick fixes on both of my issues. Wont leave you hanging this time... :D