[Spice-devel] [PATCH win-agent 7/9] Quit if RegisterServiceCtrlHandler failed
Marc-André Lureau
marcandre.lureau at gmail.com
Fri May 11 09:39:16 PDT 2012
---
vdservice/vdservice.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index 9c057bb..9fafc7c 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -415,10 +415,8 @@ VOID WINAPI VDService::main(DWORD argc, TCHAR* argv[])
s->_status_handle = RegisterServiceCtrlHandlerEx(VD_SERVICE_NAME, &VDService::control_handler,
NULL);
if (!s->_status_handle) {
- printf("RegisterServiceCtrlHandler failed\n");
-#ifndef DEBUG_VDSERVICE
+ vd_printf("RegisterServiceCtrlHandler failed\n");
return;
-#endif // DEBUG_VDSERVICE
}
// service is starting
--
1.7.10.1
More information about the Spice-devel
mailing list