From 12f87fac8c1d5d4a1bafeadb87e4e96fdce22820 Mon Sep 17 00:00:00 2001 From: rheiny Date: Sun, 11 Feb 2007 15:35:46 +0000 Subject: [PATCH] Improved the Directories configuration dialog. --- src/drivers/win/common.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/drivers/win/common.cpp diff --git a/src/drivers/win/common.cpp b/src/drivers/win/common.cpp new file mode 100644 index 00000000..a752fc90 --- /dev/null +++ b/src/drivers/win/common.cpp @@ -0,0 +1,8 @@ +#include "common.h" + +bool directoryExists(const char* dirname) +{ + DWORD res = GetFileAttributes(dirname); + return res != 0xFFFFFFFF && res & FILE_ATTRIBUTE_DIRECTORY; +} +