mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
now c:\ do not crash cmd
svn path=/trunk/; revision=815
This commit is contained in:
parent
ead0eeacdd
commit
e28f90e740
1 changed files with 15 additions and 4 deletions
|
@ -111,10 +111,21 @@ SearchForExecutable (LPCTSTR pFileName, LPTSTR pFullName)
|
|||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("Absolute or relative path is given.\n"));
|
||||
#endif
|
||||
GetFullPathName (pFileName,
|
||||
|
||||
|
||||
|
||||
|
||||
if (GetFullPathName (pFileName,
|
||||
MAX_PATH,
|
||||
szPathBuffer,
|
||||
&pFilePart);
|
||||
&pFilePart) ==0)
|
||||
return FALSE;
|
||||
|
||||
|
||||
if(pFilePart == 0)
|
||||
return FALSE;
|
||||
|
||||
|
||||
|
||||
if (_tcschr (pFilePart, _T('.')) != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue