line change and encoding fixes

This commit is contained in:
Reijo Tomperi 2009-08-15 22:39:57 +03:00
parent 19e5fdb087
commit f36f3bfae1
2 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team.
* Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -202,16 +202,16 @@ static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)
static BOOL MyIsDirectory(std::string path)
{
#ifdef __BORLANDC__
struct ffblk ffblk;
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
if (ret == 0)
findclose(&ffblk);
return !ret;
#else
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
return PathIsDirectory(path.c_str());
#endif
#ifdef __BORLANDC__
struct ffblk ffblk;
int ret = findfirst(path.c_str(), &ffblk, FA_DIREC);
if (ret == 0)
findclose(&ffblk);
return !ret;
#else
// See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx
return PathIsDirectory(path.c_str());
#endif
}
static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)