Commit 9ab5860 1 parent ad2f2fb commit 9ab5860 Copy full SHA for 9ab5860
File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11
11
#include " ./MiniThing/Qt/MiniThingQt.h"
12
12
#endif
13
13
14
+ // ==========================================================================
15
+ // Static Functions //
16
+ // ==========================================================================
14
17
static bool IsRunAsAdmin (void )
15
18
{
16
19
BOOL isRunAsAdmin = FALSE ;
@@ -66,11 +69,14 @@ static void GetAdminPrivileges(CString strApp)
66
69
WaitForSingleObject (executeInfo.hProcess , INFINITE);
67
70
}
68
71
72
+ // ==========================================================================
73
+ // Main Entry //
74
+ // ==========================================================================
69
75
int main (int argc, char *argv[])
70
76
{
71
- // Check if current app run as admin
72
- // if not, create a new app run as admin
73
- // and exit current app
77
+ // Check if current process run as admin
78
+ // if not, create a new process run as admin
79
+ // and exit current process
74
80
if (!IsRunAsAdmin ())
75
81
{
76
82
WCHAR path[MAX_PATH] = { 0 };
Original file line number Diff line number Diff line change @@ -111,9 +111,9 @@ void MiniThingQt::SetupActionsAndMenus()
111
111
112
112
MiniThingQt::~MiniThingQt ()
113
113
{
114
- // Destroy qt work thread firstly, cause there are some data strcture
115
- // we need use to terminate thread and so on
116
- // after we destroy qt work thread, we can destroy core safely
114
+ // Destroy qt work thread firstly, cause there are some data strcture pMiniThingCore
115
+ // we need use to destroy qt work thread firstly
116
+ // and then destroy minithing core
117
117
delete m_pMiniThingQtWorkThread;
118
118
delete m_pMiniThingCore;
119
119
You can’t perform that action at this time.
0 commit comments