diff --git a/src/drivers/Qt/config.cpp b/src/drivers/Qt/config.cpp index 2a595d29..96dc9de5 100644 --- a/src/drivers/Qt/config.cpp +++ b/src/drivers/Qt/config.cpp @@ -17,6 +17,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "Qt/main.h" #include "Qt/throttle.h" #include "Qt/config.h" @@ -157,6 +159,10 @@ GetBaseDirectory(std::string &dir) char *home = getenv("HOME"); #ifdef WIN32 + if ( home == NULL ) + { + home = getenv("USERPROFILE"); + } if ( home == NULL ) { home = getenv("HOMEPATH");