From 74fa514608fe398fd02173fbbe021a3cbeab2d4e Mon Sep 17 00:00:00 2001 From: eliboa Date: Mon, 10 Sep 2018 18:42:11 +0200 Subject: [PATCH] minor fixes --- TegraRcmGUI/DialogTab03.cpp | 15 ++++++++++++--- TegraRcmGUI/DialogTab03.h | 6 ------ TegraRcmGUI/TegraRcmGUI.rc | Bin 21976 -> 21984 bytes 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/TegraRcmGUI/DialogTab03.cpp b/TegraRcmGUI/DialogTab03.cpp index 9eb4abf..f3b0296 100644 --- a/TegraRcmGUI/DialogTab03.cpp +++ b/TegraRcmGUI/DialogTab03.cpp @@ -194,10 +194,19 @@ void DialogTab03::CleanRegestry() { if (lnRes != ERROR_FILE_NOT_FOUND) { //Remove regestry value - lnRes = RegDeleteValueA(hKey, key.c_str()); + lnRes = RegOpenKeyEx(HKEY_CURRENT_USER, + _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), + 0L, KEY_WRITE, + &hKey); - // Create new shortcut - CreateLink(); + if (lnRes != ERROR_FILE_NOT_FOUND) + { + //Remove regestry value + lnRes = RegDeleteValueA(hKey, subkey.c_str()); + + // Create new shortcut + CreateLink(); + } } } } \ No newline at end of file diff --git a/TegraRcmGUI/DialogTab03.h b/TegraRcmGUI/DialogTab03.h index 0fd25e0..8b55158 100644 --- a/TegraRcmGUI/DialogTab03.h +++ b/TegraRcmGUI/DialogTab03.h @@ -1,10 +1,4 @@ #pragma once -//#define _WIN32_DCOM -//#include -//#include -//#pragma comment(lib, "taskschd.lib") -//#pragma comment(lib, "comsupp.lib") - #include #include "TegraRcmGUIDlg.h" #include "TegraRcm.h" diff --git a/TegraRcmGUI/TegraRcmGUI.rc b/TegraRcmGUI/TegraRcmGUI.rc index a09adbd436e5ecd785fff4e67b8b3c2b6a93f72d..16c3c6229d0580b6834f4132796f4a91202ac7f5 100644 GIT binary patch delta 34 qcmcbyn(@JE#tkBx{3#6i4CM@Y3gfmlLa+pH(O{f&;bCzBMI;T delta 46 xcmaE`n(@YJ#tkBx@&yd}4CM@|3`GnI3`q>73?)FA&yWY?rGR8MTWc=W0RTL(3|IgF