Fossil SCM
Fix the build for windows.
Commit
467eae24252d81a11eeddb018881089447123ea9
Parent
0a7e326fa48fd87…
1 file changed
+3
-3
+3
-3
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -973,20 +973,20 @@ | ||
| 973 | 973 | zSvcName = g.argv[3]; |
| 974 | 974 | }else if( g.argc>4 ){ |
| 975 | 975 | fossil_fatal("too many arguments for stop method."); |
| 976 | 976 | } |
| 977 | 977 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 978 | - if( !hScm ) winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); | |
| 978 | + if( !hScm ) winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); | |
| 979 | 979 | hSvc = OpenServiceW(hScm, fossil_utf8_to_unicode(zSvcName), |
| 980 | 980 | SERVICE_ALL_ACCESS); |
| 981 | - if( !hSvc ) winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); | |
| 981 | + if( !hSvc ) winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); | |
| 982 | 982 | QueryServiceStatus(hSvc, &sstat); |
| 983 | 983 | if( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 984 | 984 | fossil_print("Stopping service '%s'", zSvcName); |
| 985 | 985 | if( sstat.dwCurrentState!=SERVICE_STOP_PENDING ){ |
| 986 | 986 | if( !ControlService(hSvc, SERVICE_CONTROL_STOP, &sstat) ){ |
| 987 | - winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); | |
| 987 | + winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); | |
| 988 | 988 | } |
| 989 | 989 | } |
| 990 | 990 | while( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 991 | 991 | Sleep(100); |
| 992 | 992 | fossil_print("."); |
| 993 | 993 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -973,20 +973,20 @@ | |
| 973 | zSvcName = g.argv[3]; |
| 974 | }else if( g.argc>4 ){ |
| 975 | fossil_fatal("too many arguments for stop method."); |
| 976 | } |
| 977 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 978 | if( !hScm ) winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); |
| 979 | hSvc = OpenServiceW(hScm, fossil_utf8_to_unicode(zSvcName), |
| 980 | SERVICE_ALL_ACCESS); |
| 981 | if( !hSvc ) winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); |
| 982 | QueryServiceStatus(hSvc, &sstat); |
| 983 | if( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 984 | fossil_print("Stopping service '%s'", zSvcName); |
| 985 | if( sstat.dwCurrentState!=SERVICE_STOP_PENDING ){ |
| 986 | if( !ControlService(hSvc, SERVICE_CONTROL_STOP, &sstat) ){ |
| 987 | winhttp_fatal("stop",, zSvcName, win32_get_last_errmsg()); |
| 988 | } |
| 989 | } |
| 990 | while( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 991 | Sleep(100); |
| 992 | fossil_print("."); |
| 993 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -973,20 +973,20 @@ | |
| 973 | zSvcName = g.argv[3]; |
| 974 | }else if( g.argc>4 ){ |
| 975 | fossil_fatal("too many arguments for stop method."); |
| 976 | } |
| 977 | hScm = OpenSCManagerW(NULL, NULL, SC_MANAGER_ALL_ACCESS); |
| 978 | if( !hScm ) winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); |
| 979 | hSvc = OpenServiceW(hScm, fossil_utf8_to_unicode(zSvcName), |
| 980 | SERVICE_ALL_ACCESS); |
| 981 | if( !hSvc ) winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); |
| 982 | QueryServiceStatus(hSvc, &sstat); |
| 983 | if( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 984 | fossil_print("Stopping service '%s'", zSvcName); |
| 985 | if( sstat.dwCurrentState!=SERVICE_STOP_PENDING ){ |
| 986 | if( !ControlService(hSvc, SERVICE_CONTROL_STOP, &sstat) ){ |
| 987 | winhttp_fatal("stop", zSvcName, win32_get_last_errmsg()); |
| 988 | } |
| 989 | } |
| 990 | while( sstat.dwCurrentState!=SERVICE_STOPPED ){ |
| 991 | Sleep(100); |
| 992 | fossil_print("."); |
| 993 |