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