mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-08-22 01:50:14 +00:00
mingw: remove tMain use
mingw does not support it.
This commit is contained in:
parent
04e53efb31
commit
63541ea6ac
@ -1355,7 +1355,7 @@ LRESULT CALLBACK VDAgent::wnd_proc(HWND hwnd, UINT message, WPARAM wparam, LPARA
|
||||
return 0;
|
||||
}
|
||||
|
||||
int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE prev_instance, LPTSTR cmd_line, int cmd_show)
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
VDAgent* vdagent = VDAgent::get();
|
||||
vdagent->run();
|
||||
|
||||
@ -1216,7 +1216,7 @@ void VDService::write_agent_control(uint32_t type, uint32_t opaque)
|
||||
}
|
||||
}
|
||||
|
||||
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
||||
int main(int argc, char* argv[], char* envp[])
|
||||
{
|
||||
bool success = false;
|
||||
|
||||
@ -1226,9 +1226,9 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
|
||||
}
|
||||
VDService* vdservice = VDService::get();
|
||||
if (argc > 1) {
|
||||
if (lstrcmpi(argv[1], TEXT("install")) == 0) {
|
||||
if (strcmp(argv[1], "install") == 0) {
|
||||
success = vdservice->install();
|
||||
} else if (lstrcmpi(argv[1], TEXT("uninstall")) == 0) {
|
||||
} else if (strcmp(argv[1], "uninstall") == 0) {
|
||||
success = vdservice->uninstall();
|
||||
} else {
|
||||
printf("Use: vdservice install / uninstall\n");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user