PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Corrupted button settings

After trying to programmatically change the button settings in the registry, the button settings dialog on a 3900 has gone corrupted. No idea what I did, as far as I know I was only changing the shortcut to my program... There is only one button (Button 1, Calendar) and the columns are all bunched at the left.

Restore Default doesn't fix it. Help - has anyone got a fix for this (registry?) without hard resetting the whole thing (which I really can't do).
Ah, answered my own question.

I caused this corruption by passing a string length of two bytes too short (e.g. 50 bytes for wstrlen of 25) in RegSetValueEx, and so the string got saved without the zero-termination!

Added 2 bytes (e.g. 52 bytes for wstrlen of 25), and it fixed the problem. Phew...