remove random dependencies

This commit is contained in:
Akash Mozumdar 2018-06-13 00:52:44 -04:00
parent 47dccbf218
commit c5d847f310
2 changed files with 2 additions and 5 deletions

View File

@ -96,8 +96,8 @@ target_compile_definitions(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
profile profile
vnrhost vnrhost
ithsys #ithsys
${WDK_HOME}/lib/wxp/i386/ntdll.lib #${WDK_HOME}/lib/wxp/i386/ntdll.lib
comctl32.lib comctl32.lib
psapi.lib psapi.lib
) )

View File

@ -210,8 +210,6 @@ LONG WINAPI UnhandledExcept(_EXCEPTION_POINTERS *ExceptionInfo)
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{ {
InitCommonControls(); InitCommonControls();
if (!IthInitSystemService())
TerminateProcess(GetCurrentProcess(), 0);
CreateMutex(NULL, TRUE, L"ITH_MAIN_RUNNING"); CreateMutex(NULL, TRUE, L"ITH_MAIN_RUNNING");
if (OpenHost()) if (OpenHost())
{ {
@ -246,6 +244,5 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
FindITH(); FindITH();
} }
CloseHost(); CloseHost();
IthCloseSystemService();
TerminateProcess(GetCurrentProcess(), 0); TerminateProcess(GetCurrentProcess(), 0);
} }