changeset 166:0dfd6567ec0c

* Minor Win32 fixes
author Chris Cannam
date Sun, 05 Dec 2010 19:24:42 +0000
parents 97faf861618b
children 94be1e218655
files common.cpp hgrunner.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common.cpp	Fri Dec 03 22:42:24 2010 +0000
+++ b/common.cpp	Sun Dec 05 19:24:42 2010 +0000
@@ -27,6 +27,7 @@
 
 #ifdef Q_OS_WIN32
 #define _WIN32_WINNT 0x0500
+#define SECURITY_WIN32 
 #include <windows.h>
 #include <security.h>
 #else
--- a/hgrunner.cpp	Fri Dec 03 22:42:24 2010 +0000
+++ b/hgrunner.cpp	Sun Dec 05 19:24:42 2010 +0000
@@ -62,7 +62,7 @@
 bool HgRunner::unbundleExtension()
 {
     QString bundled = ":easyhg.py";
-    QString home = QProcessEnvironment::systemEnvironment().value("HOME");
+    QString home = QDir::homePath();
     QString target = QString("%1/.easyhg").arg(home);
     if (!QDir().mkpath(target)) {
         DEBUG << "Failed to make unbundle path " << target << endl;