@@ -75,8 +75,8 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
7575 g_ServiceStatus.dwCheckPoint = 1 ;
7676
7777 if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
78- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
79- }
78+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
79+ }
8080 goto EXIT;
8181 }
8282
@@ -87,7 +87,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
8787 g_ServiceStatus.dwCheckPoint = 0 ;
8888
8989 if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
90- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
90+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
9191 }
9292
9393 // Start the thread that will perform the main task of the service
@@ -114,7 +114,7 @@ VOID WINAPI ServiceMain (DWORD argc, LPTSTR *argv) {
114114 g_ServiceStatus.dwCheckPoint = 3 ;
115115
116116 if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
117- OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
117+ OutputDebugString (_T (" My Sample Service: ServiceMain: SetServiceStatus returned error" ));
118118 }
119119
120120EXIT:
@@ -143,8 +143,8 @@ VOID WINAPI ServiceCtrlHandler (DWORD CtrlCode) {
143143 g_ServiceStatus.dwCheckPoint = 4 ;
144144
145145 if (SetServiceStatus (g_StatusHandle, &g_ServiceStatus) == FALSE ) {
146- OutputDebugString (_T (" My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error" ));
147- }
146+ OutputDebugString (_T (" My Sample Service: ServiceCtrlHandler: SetServiceStatus returned error" ));
147+ }
148148
149149 // This will signal the worker thread to start shutting down
150150 SetEvent (g_ServiceStopEvent);
0 commit comments