Commit ebd6dbc5 authored by Pierre Mageau's avatar Pierre Mageau Committed by Alexandre Julliard

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

parent 6fed97f3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment