Fix Japanese bug #4776.

svn path=/trunk/; revision=44084
This commit is contained in:
Dmitry Gorbachev 2009-11-10 22:52:41 +00:00
parent a72dd3434c
commit a6c89f30fa

View file

@ -1224,8 +1224,16 @@ static LPCSTR MENU_ParseResource( LPCSTR res, HMENU hMenu, BOOL unicode )
}
else /* Not a popup */
{
if (*str == 0)
flags = MF_SEPARATOR;
if(!unicode)
{
if (*str == 0)
flags = MF_SEPARATOR;
}
else
{
if (*(LPCWSTR)str == 0)
flags = MF_SEPARATOR;
}
if (flags & MF_SEPARATOR)
{