- Don't try to get the length of a possibly empty string. This fixes many menu applications (such as WinRAR). However I'm now getting a bug due to a double-free. It seems a GDI Object is being freed twice. Can anyone check this out please?

svn path=/trunk/; revision=16728
This commit is contained in:
Alex Ionescu 2005-07-26 00:43:19 +00:00
parent e7c2fa1d9c
commit 55234f6094

View file

@ -3771,8 +3771,11 @@ GetMenuItemInfoA(
}
RtlCopyMemory(mii, &miiW, miiW.cbSize);
if (AnsiBuffer)
{
mii->dwTypeData = AnsiBuffer;
mii->cch = strlen(AnsiBuffer);
}
return TRUE;
}