mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Handle possible error from FindFirstFile. Thanks to Thomas for finding the problem.
svn path=/trunk/; revision=18890
This commit is contained in:
@@ -101,6 +101,11 @@ VOID GetPathCase( TCHAR * Path, TCHAR * OutPath)
|
||||
else
|
||||
{
|
||||
hFind = FindFirstFile(TempPath,&FindFileData);
|
||||
if(hFind == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
_tcscpy(OutPath, Path);
|
||||
return;
|
||||
}
|
||||
_tcscat(TempPath, _T("\\"));
|
||||
_tcscat(OutPath, FindFileData.cFileName);
|
||||
_tcscat(OutPath, _T("\\"));
|
||||
|
||||
Reference in New Issue
Block a user