mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 20:25:17 +00:00
Fix EOL style (I think!)
svn path=/trunk/; revision=29109
This commit is contained in:
parent
4ee8a37af5
commit
a3468f83ec
|
@ -24,6 +24,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(
|
||||
DWORD dwControl,
|
||||
|
@ -86,7 +97,11 @@ ServiceMain(DWORD argc, char** argv)
|
|||
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 @@ ServiceMain(DWORD argc, char** argv)
|
|||
*/
|
||||
}
|
||||
|
||||
InitializeFakeDevice();
|
||||
|
||||
logmsg("Processing existing devices\n");
|
||||
/* Now find any devices that already exist on the system */
|
||||
if ( ! ProcessExistingDevices() )
|
||||
|
|
Loading…
Reference in a new issue