summaryrefslogtreecommitdiff
path: root/source3/utils/regedit_dialog.c
diff options
context:
space:
mode:
authorC. Davis <cd.rattan@gmail.com>2012-08-19 20:09:53 -0700
committerMichael Adam <obnox@samba.org>2013-04-29 13:08:22 +0200
commit68d4e8dfc75fa788eae44e7f23ec866450792837 (patch)
tree29730b0caebc668c21a718c6ff88310ce6ab89bd /source3/utils/regedit_dialog.c
parent8508b411b2ff69f59aa133ebd97e489d7c6c1626 (diff)
downloadsamba-68d4e8dfc75fa788eae44e7f23ec866450792837.tar.gz
samba-68d4e8dfc75fa788eae44e7f23ec866450792837.tar.bz2
samba-68d4e8dfc75fa788eae44e7f23ec866450792837.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/regedit_dialog.c b/source3/utils/regedit_dialog.c
index ddb6819940..c3dd19899b 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;
}