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

@ -1223,9 +1223,17 @@ static LPCSTR MENU_ParseResource( LPCSTR res, HMENU hMenu, BOOL unicode )
AppendMenuW(hMenu, flags, (UINT)hSubMenu, (LPCWSTR)str);
}
else /* Not a popup */
{
if(!unicode)
{
if (*str == 0)
flags = MF_SEPARATOR;
}
else
{
if (*(LPCWSTR)str == 0)
flags = MF_SEPARATOR;
}
if (flags & MF_SEPARATOR)
{