Fix possible crash if menu entry string is too long

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Initialize all members

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Simplify expression

Based on TortoiseSVN revision 25087

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>