diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-08-19 20:09:53 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:08:22 +0200 |
commit | 68d4e8dfc75fa788eae44e7f23ec866450792837 (patch) | |
tree | 29730b0caebc668c21a718c6ff88310ce6ab89bd /source3/utils/regedit_dialog.c | |
parent | 8508b411b2ff69f59aa133ebd97e489d7c6c1626 (diff) | |
download | samba-68d4e8dfc75fa788eae44e7f23ec866450792837.tar.gz |
regedit: Mark string values if they contain unprintable chars.
Also, edit the values in bin mode to avoid screen glitches.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/regedit_dialog.c')
-rw-r--r-- | source3/utils/regedit_dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/regedit_dialog.c b/source3/utils/regedit_dialog.c index ddb6819940d..c3dd19899be 100644 --- a/source3/utils/regedit_dialog.c +++ b/source3/utils/regedit_dialog.c @@ -1056,7 +1056,7 @@ WERROR dialog_edit_value(TALLOC_CTX *ctx, struct registry_key *key, talloc_set_destructor(edit, edit_dialog_free); edit->mode = type; - if (force_binary) { + if (force_binary || (vitem && vitem->unprintable)) { edit->mode = REG_BINARY; } |