FindFirst short-name fallback trick not required in Unicode stubs

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6406 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-08-07 23:26:00 +00:00
parent 942ea1d465
commit 928f0f78e5

View file

@ -179,9 +179,11 @@ void NSISCALL myDelete(TCHAR *buf, int flags)
do
{
TCHAR *fdfn = fd.cFileName;
#ifndef _UNICODE
if (*findchar(fdfn, _T('?')) && *fd.cAlternateFileName)
// name contains unicode, use short name
fdfn = fd.cAlternateFileName;
#endif
#ifdef NSIS_SUPPORT_RMDIR
if (fdfn[0] == _T('.') && !fdfn[1]) continue;