summaryrefslogtreecommitdiff
path: root/vdservice
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-03-01 16:58:18 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-01 16:58:18 +0100
commit74af857e8e4a6240e9aac4a3d72aa0e5a443472b (patch)
treeb4a0cba2dfbf88a2f057e2c07e3e7b3db4dfd852 /vdservice
parentdec8f9d049b884db2bf91c40478c832b4a4628fc (diff)
Revert "mingw: remove tMain use"
This patch wasn't sent for review, and wasn't meant to be pushed as part of the mingw series This reverts commit 63541ea6ac722d332966f28e1779e4d668244fcb.
Diffstat (limited to 'vdservice')
-rw-r--r--vdservice/vdservice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index 9c057bb..4701f5a 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -1216,7 +1216,7 @@ void VDService::write_agent_control(uint32_t type, uint32_t opaque)
}
}
-int main(int argc, char* argv[], char* envp[])
+int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
bool success = false;
@@ -1226,9 +1226,9 @@ int main(int argc, char* argv[], char* envp[])
}
VDService* vdservice = VDService::get();
if (argc > 1) {
- if (strcmp(argv[1], "install") == 0) {
+ if (lstrcmpi(argv[1], TEXT("install")) == 0) {
success = vdservice->install();
- } else if (strcmp(argv[1], "uninstall") == 0) {
+ } else if (lstrcmpi(argv[1], TEXT("uninstall")) == 0) {
success = vdservice->uninstall();
} else {
printf("Use: vdservice install / uninstall\n");