From 1d41f9aa1088848c840b5d746d82366ce39547d0 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 15 Jul 2025 23:38:03 +0900 Subject: [PATCH] examples: exception handling++ --- examples/Example.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Example.h b/examples/Example.h index 583ffc9f..e905bf59 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -90,6 +90,8 @@ struct Example auto rpath = realpath(path, buf); #endif + if (!rpath) return; + //open directory #ifdef _WIN32 WIN32_FIND_DATA fd;