regedit: Improve calculation for centering dialogs.
commit5e0f4be8e2123ccf9f6beece95b187cd2676ff24
authorC. Davis <cd.rattan@gmail.com>
Sat, 28 Jul 2012 01:39:54 +0000 (27 18:39 -0700)
committerMichael Adam <obnox@samba.org>
Mon, 29 Apr 2013 11:05:58 +0000 (29 13:05 +0200)
tree55f8e7b41b2ee46432365c9c720eaf3c25a8cf01
parent6155abcf82f0bb03e62f7fc4b1df3f7260337bc3
regedit: Improve calculation for centering dialogs.

Add some sanity checks to avoid crashing.

Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/regedit_dialog.c