diff --git a/OBSApi/Utility/XT_Windows.cpp b/OBSApi/Utility/XT_Windows.cpp index cce59eb16..b21a5ab92 100644 --- a/OBSApi/Utility/XT_Windows.cpp +++ b/OBSApi/Utility/XT_Windows.cpp @@ -339,7 +339,7 @@ BOOL STDCALL OSFileExists(CTSTR lpFile) bool STDCALL OSFileIsDirectory(CTSTR file) { - return (GetFileAttributes(file) & FILE_ATTRIBUTE_DIRECTORY); + return (FILE_ATTRIBUTE_DIRECTORY == (GetFileAttributes(file) & FILE_ATTRIBUTE_DIRECTORY)); } QWORD STDCALL OSGetFileModificationTime(String path)