mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Minor fix in defaults template handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12724 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a857fdc999
commit
c9fecce6e0
3 changed files with 19 additions and 12 deletions
|
@ -833,14 +833,19 @@ static NSFileManager* defaultManager = nil;
|
|||
|
||||
res = GetFileAttributes(cpath);
|
||||
if (res == WIN32ERR)
|
||||
return NO;
|
||||
|
||||
if (isDirectory)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
if (isDirectory != 0)
|
||||
{
|
||||
if (res & FILE_ATTRIBUTE_DIRECTORY)
|
||||
*isDirectory = YES;
|
||||
{
|
||||
*isDirectory = YES;
|
||||
}
|
||||
else
|
||||
*isDirectory = NO;
|
||||
{
|
||||
*isDirectory = NO;
|
||||
}
|
||||
}
|
||||
return YES;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue