Skip to content

Commit 9ab5860

Browse files
committed
Update comment
1 parent ad2f2fb commit 9ab5860

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Main.cpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "./MiniThing/Qt/MiniThingQt.h"
1212
#endif
1313

14+
//==========================================================================
15+
// Static Functions //
16+
//==========================================================================
1417
static bool IsRunAsAdmin(void)
1518
{
1619
BOOL isRunAsAdmin = FALSE;
@@ -66,11 +69,14 @@ static void GetAdminPrivileges(CString strApp)
6669
WaitForSingleObject(executeInfo.hProcess, INFINITE);
6770
}
6871

72+
//==========================================================================
73+
// Main Entry //
74+
//==========================================================================
6975
int main(int argc, char *argv[])
7076
{
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
7480
if (!IsRunAsAdmin())
7581
{
7682
WCHAR path[MAX_PATH] = { 0 };

MiniThing/Qt/MiniThingQt.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ void MiniThingQt::SetupActionsAndMenus()
111111

112112
MiniThingQt::~MiniThingQt()
113113
{
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
117117
delete m_pMiniThingQtWorkThread;
118118
delete m_pMiniThingCore;
119119

0 commit comments

Comments
 (0)