Author: gedmurphy
Date: Mon Jul 16 21:47:12 2007
New Revision: 27697
URL:
http://svn.reactos.org/svn/reactos?rev=27697&view=rev
Log:
revert r27695 as it's already implemented in advapi32. My tests failed because
it's incorrectly named.
Modified:
trunk/reactos/base/system/services/rpcserver.c
trunk/reactos/base/system/services/services.c
trunk/reactos/base/system/services/services.h
Modified: trunk/reactos/base/system/services/rpcserver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c (original)
+++ trunk/reactos/base/system/services/rpcserver.c Mon Jul 16 21:47:12 2007
@@ -1511,9 +1511,6 @@
if (ScmShutdown)
return ERROR_SHUTDOWN_IN_PROGRESS;
- if (!ScmWaitForEvent())
- return ERROR_ACCESS_DENIED;
-
dwError = ScmCreateManagerHandle(lpDatabaseName,
&hHandle);
if (dwError != ERROR_SUCCESS)
Modified: trunk/reactos/base/system/services/services.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/servi…
==============================================================================
--- trunk/reactos/base/system/services/services.c (original)
+++ trunk/reactos/base/system/services/services.c Mon Jul 16 21:47:12 2007
@@ -91,30 +91,6 @@
*StartEvent = hEvent;
return TRUE;
-}
-
-
-BOOL ScmWaitForEvent()
-{
- HANDLE hEvent;
- BOOL ret = FALSE;
-
- hEvent = OpenEvent(EVENT_ALL_ACCESS,
- FALSE,
- TEXT("SvcctrlStartEvent_A3752DX"));
-
- if (hEvent)
- {
- DWORD ret = WaitForSingleObject(hEvent,
- INFINITE);
-
- if (ret == WAIT_OBJECT_0)
- ret = TRUE;
-
- CloseHandle(hEvent);
- }
-
- return ret;
}
Modified: trunk/reactos/base/system/services/services.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/servi…
==============================================================================
--- trunk/reactos/base/system/services/services.h (original)
+++ trunk/reactos/base/system/services/services.h Mon Jul 16 21:47:12 2007
@@ -134,7 +134,6 @@
/* services.c */
-BOOL ScmWaitForEvent();
VOID PrintString(LPCSTR fmt, ...);
/* EOF */