From d5228ec2b9b12a311bdd30e6ddeb0eee0467e157 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 May 2015 06:43:51 +0200 Subject: game-detector: store the right executable name --- facetracknoir/process_detector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'facetracknoir/process_detector.cpp') 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; } -- cgit v1.2.3