From ebd6dbc5f85c991640afc3153df027ba0f0c2e1e Mon Sep 17 00:00:00 2001 From: Pierre Mageau <pierre@macadamian.com> Date: Sun, 31 Oct 1999 01:55:36 +0000 Subject: [PATCH] A crash would occur if the file type in report mode was empty. --- dlls/shell32/pidl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index eb5856c8920..0e7d212b4c1 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -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) -- GitLab