X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/807a903e6807ae3e49928bda488a04bc0d832149..a51fb6427c1036779a67b92ff0976c0a735ab0c3:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index b7a6ae1a48..e035e05457 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -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;