projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aebf13
)
Handle possible error from FindFirstFile. Thanks to Thomas for finding the problem.
author
Brandon Turner
<turnerb7@msu.edu>
Sun, 30 Oct 2005 18:01:50 +0000
(18:01 +0000)
committer
Brandon Turner
<turnerb7@msu.edu>
Sun, 30 Oct 2005 18:01:50 +0000
(18:01 +0000)
svn path=/trunk/; revision=18890
reactos/subsys/system/cmd/misc.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/cmd/misc.c
b/reactos/subsys/system/cmd/misc.c
index
d581f62
..
5efd8e1
100644
(file)
--- a/
reactos/subsys/system/cmd/misc.c
+++ b/
reactos/subsys/system/cmd/misc.c
@@
-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("\\"));