Handle possible error from FindFirstFile. Thanks to Thomas for finding the problem.

svn path=/trunk/; revision=18890
This commit is contained in:
Brandon Turner
2005-10-30 18:01:50 +00:00
parent 7aebf134dc
commit 15fb98b4ad
+5
View File
@@ -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("\\"));