Author: tkreuzer
Date: Sat Feb 7 21:27:01 2009
New Revision: 39469
URL:
http://svn.reactos.org/svn/reactos?rev=39469&view=rev
Log:
According to msdn CryptReleaseContext returns 0 on error.
but INVALID_HANDLE_VALUE is -1, go back to original code
Modified:
branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c
Modified: branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/w…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1] Sat
Feb 7 21:27:01 2009
@@ -454,7 +454,7 @@
Service = ScLookupServiceByServiceName((LPWSTR)lpServiceName);
if (Service == NULL)
{
- return INVALID_HANDLE_VALUE;
+ return (SERVICE_STATUS_HANDLE)NULL;
}
Service->HandlerFunction = lpHandlerProc;