X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/5f25f8927d0670eabcbcb8ef1e71b7887c63b887..354f66865d010a90b1d81c83bcaf55115e5859e1:/viewer/view_btree.cpp?ds=inline diff --git a/viewer/view_btree.cpp b/viewer/view_btree.cpp index dab5404..7604293 100644 --- a/viewer/view_btree.cpp +++ b/viewer/view_btree.cpp @@ -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; }