OSDN Git Service

BUG: [ 1153017 ] FileFilterHelper::SetFilter ASSERTS on empty string
authorKimmo Varis <kimmov@gmail.com>
Sun, 27 Feb 2005 23:15:42 +0000 (23:15 +0000)
committerKimmo Varis <kimmov@gmail.com>
Sun, 27 Feb 2005 23:15:42 +0000 (23:15 +0000)
Src/FileFilterHelper.cpp
Src/readme.txt

index 30b6127..73b4052 100644 (file)
@@ -299,6 +299,12 @@ CString FileFilterHelper::GetFilter()
  */
 BOOL FileFilterHelper::SetFilter(CString filter)
 {
+       if (filter.IsEmpty())
+       {
+               _RPTF0(_CRT_ERROR, "Filter (path/mask) cannot be empty!");
+               return FALSE;
+       }
+
        if (filter[0] == '*')
        {
                SetMask(filter);
index 848ad5f..9bec5c4 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-27 Kimmo
+ BUG: [ 1153017 ] FileFilterHelper::SetFilter ASSERTS on empty string
+  Src: FileFilterHelper.cpp
+
 2005-02-27 Perry
  BUG: [ 1152913 ] LocationView type bugs?
   (Fixed 17 type conversion warnings in MSVC.NET 2003, mostly by explicit casts)