Author: silverblade
Date: Wed Sep 19 23:25:43 2007
New Revision: 29109
URL:
http://svn.reactos.org/svn/reactos?rev=29109&view=rev
Log:
Fix EOL style (I think!)
Modified:
trunk/reactos/base/services/audiosrv/debug.c (props changed)
trunk/reactos/base/services/audiosrv/main.c
Propchange: trunk/reactos/base/services/audiosrv/debug.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/services/audiosrv/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/audiosrv/mai…
==============================================================================
--- trunk/reactos/base/services/audiosrv/main.c (original)
+++ trunk/reactos/base/services/audiosrv/main.c Wed Sep 19 23:25:43 2007
@@ -23,6 +23,17 @@
SERVICE_STATUS_HANDLE service_status_handle;
SERVICE_STATUS service_status;
+
+/* This is for testing only! */
+VOID
+InitializeFakeDevice()
+{
+ PnP_AudioDevice* list_node;
+
+ list_node = CreateDeviceDescriptor(L"ThisDeviceDoesNotReallyExist", TRUE);
+ AppendAudioDeviceToList(list_node);
+ DestroyDeviceDescriptor(list_node);
+}
DWORD WINAPI
ServiceControlHandler(
@@ -86,7 +97,11 @@
NULL);
logmsg("Service status handle %d\n", service_status_handle);
- /* TODO: Deal with errors */
+ if ( ! service_status_handle )
+ {
+ logmsg("Failed to register service control handler\n");
+ /* FIXME - we should fail */
+ }
/* Set these to defaults */
service_status.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
@@ -127,6 +142,8 @@
*/
}
+ InitializeFakeDevice();
+
logmsg("Processing existing devices\n");
/* Now find any devices that already exist on the system */
if ( ! ProcessExistingDevices() )