From 600588910f8ed1894d0b3782b103cb9e01ef6928 Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 15 Jan 2023 04:38:53 -0500 Subject: [PATCH] Another build fix for Qt GUI. --- src/drivers/Qt/config.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drivers/Qt/config.cpp b/src/drivers/Qt/config.cpp index 24f41caa..8b7722e9 100644 --- a/src/drivers/Qt/config.cpp +++ b/src/drivers/Qt/config.cpp @@ -465,16 +465,16 @@ GetBaseDirectory(std::string &dir) else { #ifdef WIN32 - home = new char[MAX_PATH + 1]; - GetModuleFileNameA(NULL, home, MAX_PATH + 1); + char *exePath = new char[MAX_PATH + 1]; + GetModuleFileNameA(NULL, exePath, MAX_PATH + 1); - char *lastBS = strrchr(home,'\\'); + char *lastBS = strrchr(exePath,'\\'); if(lastBS) { *lastBS = 0; } - dir = std::string(home); - delete[] home; + dir = std::string(exePath); + delete[] exePath; #else dir = ""; #endif