projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a --unbreak-lines-only option to try to revert MUA breakage.
[privoxy.git]
/
w32svrapi.c
diff --git
a/w32svrapi.c
b/w32svrapi.c
index
e6f2363
..
08c0f9b
100644
(file)
--- a/
w32svrapi.c
+++ b/
w32svrapi.c
@@
-1,7
+1,7
@@
-const char w32_svrapi_rcs[] = "$Id$";
+const char w32_svrapi_rcs[] = "$Id
: w32svrapi.c,v 1.2 2006/09/20 03:15:43 david__schmidt Exp
$";
/*********************************************************************
*
/*********************************************************************
*
- * File : $Source$
+ * File : $Source
: /cvsroot/ijbswa/current/w32svrapi.c,v
$
*
* Purpose : Win32 Services API for Privoxy.
* Provides the implementation of an Win32 service to
*
* Purpose : Win32 Services API for Privoxy.
* Provides the implementation of an Win32 service to
@@
-16,7
+16,7
@@
const char w32_svrapi_rcs[] = "$Id$";
* a little more complexity to the code, but it is worth
* doing to provide that isolation.
*
* a little more complexity to the code, but it is worth
* doing to provide that isolation.
*
- * Copyright : Written by and Copyright (C) 2003 members of
+ * Copyright : Written by and Copyright (C) 2003
, 2006
members of
* the Privoxy team. http://www.privoxy.org/
*
* Written by and Copyright (C) 2003 Ian Cummings
* the Privoxy team. http://www.privoxy.org/
*
* Written by and Copyright (C) 2003 Ian Cummings
@@
-44,12
+44,8
@@
const char w32_svrapi_rcs[] = "$Id$";
* or write to the Free Software Foundation, Inc., 59
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* or write to the Free Software Foundation, Inc., 59
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * Revisions :
- * $Log$
- *
- *
*********************************************************************/
*********************************************************************/
-
\f
+
#include "config.h"
#include "config.h"
@@
-488,13
+484,13
@@
SERVICE_STATUS_HANDLE w32_register_service_ctrl_handler(
HMODULE hDll = NULL;
FARPROC pFunc = NULL;
DWORD dwLastErr = 0;
HMODULE hDll = NULL;
FARPROC pFunc = NULL;
DWORD dwLastErr = 0;
-
BOOL bRet
;
+
SERVICE_STATUS_HANDLE hServStat = (SERVICE_STATUS_HANDLE)0
;
/* Load the DLL with the SCM functions or return a failure status */
hDll = LoadLibrary("Advapi32.dll");
if (hDll == NULL)
{
/* Load the DLL with the SCM functions or return a failure status */
hDll = LoadLibrary("Advapi32.dll");
if (hDll == NULL)
{
- return
FALSE
;
+ return
hServStat
;
}
/* Get the address of the RegisterServiceCtrlHandler function, or return a failure status */
}
/* Get the address of the RegisterServiceCtrlHandler function, or return a failure status */
@@
-502,11
+498,11
@@
SERVICE_STATUS_HANDLE w32_register_service_ctrl_handler(
if (pFunc == NULL)
{
FreeLibrary(hDll);
if (pFunc == NULL)
{
FreeLibrary(hDll);
- return
FALSE
;
+ return
hServStat
;
}
/* Close the handle, and save the error code */
}
/* Close the handle, and save the error code */
-
bRet = (BOOL
)(*pFunc)(lpServiceName, lpHandlerProc);
+
hServStat = (SERVICE_STATUS_HANDLE
)(*pFunc)(lpServiceName, lpHandlerProc);
dwLastErr = GetLastError();
/* Release the library and then restore the last error
dwLastErr = GetLastError();
/* Release the library and then restore the last error
@@
-515,7
+511,7
@@
SERVICE_STATUS_HANDLE w32_register_service_ctrl_handler(
FreeLibrary(hDll);
SetLastError(dwLastErr);
FreeLibrary(hDll);
SetLastError(dwLastErr);
- return
bRe
t;
+ return
hServSta
t;
} /* -END- w32_register_service_ctrl_handler */
} /* -END- w32_register_service_ctrl_handler */