mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
|
#ifdef _DEBUG
|
||||||
DebugPrintf (_T("Absolute or relative path is given.\n"));
|
DebugPrintf (_T("Absolute or relative path is given.\n"));
|
||||||
#endif
|
#endif
|
||||||
GetFullPathName (pFileName,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (GetFullPathName (pFileName,
|
||||||
MAX_PATH,
|
MAX_PATH,
|
||||||
szPathBuffer,
|
szPathBuffer,
|
||||||
&pFilePart);
|
&pFilePart) ==0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
if(pFilePart == 0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (_tcschr (pFilePart, _T('.')) != NULL)
|
if (_tcschr (pFilePart, _T('.')) != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue