1
0
Fork 0
mirror of https://github.com/eliboa/TegraRcmGUI.git synced 2024-11-28 13:12:05 +00:00

minor fixes

This commit is contained in:
eliboa 2018-09-10 18:42:11 +02:00
parent ad20c28501
commit 74fa514608
3 changed files with 12 additions and 9 deletions

View file

@ -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);
if (lnRes != ERROR_FILE_NOT_FOUND)
{
//Remove regestry value
lnRes = RegDeleteValueA(hKey, subkey.c_str());
// Create new shortcut
CreateLink();
}
}
}
}

View file

@ -1,10 +1,4 @@
#pragma once
//#define _WIN32_DCOM
//#include <comdef.h>
//#include <taskschd.h>
//#pragma comment(lib, "taskschd.lib")
//#pragma comment(lib, "comsupp.lib")
#include <string>
#include "TegraRcmGUIDlg.h"
#include "TegraRcm.h"

Binary file not shown.