summaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorleo2004-11-19 19:51:14 +0000
committerleo2004-11-19 19:51:14 +0000
commit7a4d9fd9e4c0b651c64c912b1d42c9f38fef2a2b (patch)
tree0d8fe8298577580d94d1e7f0e327fa49847ec880 /common/file.cpp
parent0f5654b264e729918f48fc4c95aba636d673ed3a (diff)
Added support for custom user shortcut keys.
git-svn-id: http://svn.leocad.org/trunk@363 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 2df77f1..8962401 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -400,6 +400,9 @@ int FileDisk::PutChar(int c)
bool FileDisk::Open(const char *filename, const char *mode)
{
+ if (*filename == 0)
+ return false;
+
strcpy(FileName, filename);
m_hFile = fopen(filename, mode);