X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/5f25f8927d0670eabcbcb8ef1e71b7887c63b887..8e23e15f255365a35ebcf3a5cec7a4c356fc78b5:/viewer/view_btree.cpp 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; }