now c:\ do not crash cmd

svn path=/trunk/; revision=815
This commit is contained in:
Paolo Pantaleo 1999-12-03 18:50:00 +00:00
parent ead0eeacdd
commit e28f90e740

View file

@ -111,10 +111,21 @@ SearchForExecutable (LPCTSTR pFileName, LPTSTR pFullName)
#ifdef _DEBUG
DebugPrintf (_T("Absolute or relative path is given.\n"));
#endif
GetFullPathName (pFileName,
MAX_PATH,
szPathBuffer,
&pFilePart);
if (GetFullPathName (pFileName,
MAX_PATH,
szPathBuffer,
&pFilePart) ==0)
return FALSE;
if(pFilePart == 0)
return FALSE;
if (_tcschr (pFilePart, _T('.')) != NULL)
{