A crash would occur if the file type in report mode was empty.

This commit is contained in:
Pierre Mageau 1999-10-31 01:55:36 +00:00 committed by Alexandre Julliard
parent 6fed97f3c1
commit ebd6dbc5f8
1 changed files with 4 additions and 0 deletions

View File

@ -1635,6 +1635,10 @@ void _ILGetFileType(LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
if(_ILIsValue(pidl))
{
char sTemp[64];
if(uOutSize > 0)
{
pOut[0] = 0;
}
if (_ILGetExtension (pidl, sTemp, 64))
{
if (!( HCR_MapTypeToValue(sTemp, sTemp, 64, TRUE)