summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-25 11:58:58 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-25 11:58:58 (GMT)
commit7e8259aabe9d0700b09ce6d801f939bce9ff69c3 (patch)
tree61c982ad33205c7ba04785916a32f31b334ab5de /src
parent26183abd9acd44a0382e55cc985795ee7c526aed (diff)
downloaduscxml-7e8259aabe9d0700b09ce6d801f939bce9ff69c3.zip
uscxml-7e8259aabe9d0700b09ce6d801f939bce9ff69c3.tar.gz
uscxml-7e8259aabe9d0700b09ce6d801f939bce9ff69c3.tar.bz2
Some Windows specific bug-fixes
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/URL.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/URL.cpp b/src/uscxml/URL.cpp
index cefe935d..24a64ac 100644
--- a/src/uscxml/URL.cpp
+++ b/src/uscxml/URL.cpp
@@ -11,6 +11,7 @@
#include <sys/types.h>
#include <io.h>
#include <direct.h>
+#include <Shlobj.h>
#define getcwd _getcwd
#else
#include <unistd.h>
@@ -55,7 +56,7 @@ std::string URL::tmpDir() {
std::string URL::getResourceDir() {
#ifdef _WIN32
TCHAR szPath[MAX_PATH];
- if (SHGetFolderPath(NULL, CSIDL_COMMON_APPDATA, NULL, 0, szPath)) {
+ if (SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath)) {
return szPath;
} else {
return getenv("APPDATA");