[viewvc-dev] [viewvc-dev] aspfool.cpp - Improvment
Yousha Alayoub <[email protected]> Fri, 2 Sep 2011 05:47:16 -0700 (PDT)
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <293833958.22738.1314967636367.JavaMail.httpd@localhost> |
Hi,
Some changes to improve aspfool.cpp
ViewVC 1.1.11
File: windows/aspfool/aspfool.cpp
Line #8
[Original]
int inline file_exists(TCHAR const * filename)
{
WIN32_FIND_DATA fd;
HANDLE fh = FindFirstFile(filename, &fd);
if (fh != INVALID_HANDLE_VALUE)
{
FindClose(fh);
return fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ? 2 : 1;
}
return 0;
}
[Improved]
unsigned int inline file_exists(TCHAR const * filename)
{
WIN32_FIND_DATA fd;
HANDLE fh= FindFirstFile(filename, &fd);
if(fh != INVALID_HANDLE_VALUE)
{
FindClose(fh);
return (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? 2 : 1;
}
return 0;
}
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2834579
To unsubscribe from this discussion, e-mail: [[email protected]].
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2834604
To unsubscribe from this discussion, e-mail: [[email protected]].