]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_btree.cpp
Muestro los datos borrados y que son recuperables.
[z.facultad/75.52/treemulator.git] / viewer / view_btree.cpp
index dab540422032b5e6a037e57604914202d8a1cc0b..760429323e512325ed47b7312c30ebd2f8e23506 100644 (file)
@@ -40,6 +40,11 @@ ViewBTree* ViewBTree::Open (Canvas::Group *parent, const std::string &filename)
                return NULL;
        }
 
+       /* El magic no coincide!! */
+       if (strcmp (tree->header.magic, "DILUMA")) {
+               delete tree;
+               return NULL;
+       }
        return tree;
 }