Skip to content

Commit bbd063f

Browse files
committed
调整空白格式
1 parent 0814438 commit bbd063f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

demo/win_service/service/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

120120
EXIT:
@@ -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

Comments
 (0)