3678af3dd7
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/ifolder@1600 6952d904-891a-0410-993b-d76249ca496b
13 lines
445 B
Diff
13 lines
445 B
Diff
--- ftkdir.cpp.orig 2006-10-13 02:56:32 +0400
|
|
+++ ftk/src/ftkdir.cpp 2007-05-25 00:48:30 +0400
|
|
@@ -1075,7 +1075,8 @@
|
|
if( (PathSeparator = strrchr( DirInfo->full_path, '/')) == NULL)
|
|
#endif
|
|
{
|
|
- (void) getcwd( DirInfo->full_path, F_PATH_MAX_SIZE);
|
|
+ if (!getcwd( DirInfo->full_path, F_PATH_MAX_SIZE))
|
|
+ return (EINVAL);
|
|
uiLen = f_strlen( DirInfo->full_path );
|
|
DirInfo->full_path[uiLen] = '/';
|
|
DirInfo->full_path[uiLen+1] = '\0';
|