mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- 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:
@@ -3771,8 +3771,11 @@ GetMenuItemInfoA(
|
||||
}
|
||||
|
||||
RtlCopyMemory(mii, &miiW, miiW.cbSize);
|
||||
mii->dwTypeData = AnsiBuffer;
|
||||
mii->cch = strlen(AnsiBuffer);
|
||||
if (AnsiBuffer)
|
||||
{
|
||||
mii->dwTypeData = AnsiBuffer;
|
||||
mii->cch = strlen(AnsiBuffer);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user