Fossil SCM

Fix the build for windows.

drh 2014-10-20 15:14 UTC compile-time-print-checking
Commit 467eae24252d81a11eeddb018881089447123ea9
1 file changed +3 -3
+3 -3
--- src/winhttp.c
+++ src/winhttp.c
@@ -973,20 +973,20 @@
973973
zSvcName = g.argv[3];
974974
}else if( g.argc>4 ){
975975
fossil_fatal("too many arguments for stop method.");
976976
}
977977
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());
979979
hSvc = OpenServiceW(hScm, fossil_utf8_to_unicode(zSvcName),
980980
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());
982982
QueryServiceStatus(hSvc, &sstat);
983983
if( sstat.dwCurrentState!=SERVICE_STOPPED ){
984984
fossil_print("Stopping service '%s'", zSvcName);
985985
if( sstat.dwCurrentState!=SERVICE_STOP_PENDING ){
986986
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());
988988
}
989989
}
990990
while( sstat.dwCurrentState!=SERVICE_STOPPED ){
991991
Sleep(100);
992992
fossil_print(".");
993993
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button