summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-05-23 06:43:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-05-23 06:43:51 +0200
commitd5228ec2b9b12a311bdd30e6ddeb0eee0467e157 (patch)
treec1b9d5a0e89aca2a976d3bfb7a4fa8acf195b3b8 /facetracknoir
parent449837ff3071ec4ffa6fd92f6cffb2bd87ff2293 (diff)
game-detector: store the right executable name
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/process_detector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/facetracknoir/process_detector.cpp b/facetracknoir/process_detector.cpp
index 3ac6329b..c0b90bf6 100644
--- a/facetracknoir/process_detector.cpp
+++ b/facetracknoir/process_detector.cpp
@@ -186,7 +186,7 @@ bool process_detector_worker::should_stop()
return false;
}
}
-
+
last_exe_name = "";
CloseHandle(h);
@@ -216,7 +216,7 @@ bool process_detector_worker::config_to_start(QString& str)
if (filenames.contains(exe_name))
{
str = filenames[exe_name];
- last_exe_name = str;
+ last_exe_name = exe_name;
CloseHandle(h);
return true;
}
@@ -228,7 +228,7 @@ bool process_detector_worker::config_to_start(QString& str)
if (filenames.contains(exe_name))
{
str = filenames[exe_name];
- last_exe_name = str;
+ last_exe_name = exe_name;
CloseHandle(h);
return true;
}