warning fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-12-20 14:10:50 +00:00
parent 4f8fccd11a
commit 7212f3c176

View File

@@ -437,7 +437,7 @@ bool wxDirExists(const wxString& dir)
{
#if defined(__WIN32__)
DWORD attribs = GetFileAttributes(dir);
return ((attribs != -1) && (attribs & FILE_ATTRIBUTE_DIRECTORY));
return ((attribs != (DWORD)-1) && (attribs & FILE_ATTRIBUTE_DIRECTORY));
#else // Win16
#ifdef __BORLANDC__
struct ffblk fileInfo;