From: hno <> Date: Sat, 25 Sep 2004 04:01:17 +0000 (+0000) Subject: Bug #1064: Application error running Squid from command line on Windows XP SP2 X-Git-Tag: SQUID_3_0_PRE4~1055 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd654f06d66feca6acebf00fe9e33354074451bb;p=thirdparty%2Fsquid.git Bug #1064: Application error running Squid from command line on Windows XP SP2 patch by Guido. --- diff --git a/src/win32.cc b/src/win32.cc index d80d16381a..0b83258559 100644 --- a/src/win32.cc +++ b/src/win32.cc @@ -1,6 +1,6 @@ /* - * $Id: win32.cc,v 1.10 2003/08/03 21:02:41 robertc Exp $ + * $Id: win32.cc,v 1.11 2004/09/24 22:01:17 hno Exp $ * * * * * * * * * Legal stuff * * * * * * * * @@ -373,9 +373,11 @@ WIN32_Exit() { #if USE_WIN32_SERVICE - if (!Squid_Aborting) { - svcStatus.dwCurrentState = SERVICE_STOPPED; - SetServiceStatus(svcHandle, &svcStatus); + if (WIN32_run_mode == _WIN_SQUID_RUN_MODE_SERVICE) { + if (!Squid_Aborting) { + svcStatus.dwCurrentState = SERVICE_STOPPED; + SetServiceStatus(svcHandle, &svcStatus); + } } #endif