mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
windows build fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5767 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -166,6 +166,7 @@ void WINAPI ServiceCtrlHandler(DWORD control)
|
||||
/* the main service entry point */
|
||||
void WINAPI service_main(DWORD numArgs, char **args)
|
||||
{
|
||||
switch_core_flag_t flags = SCF_USE_SQL;
|
||||
const char *err = NULL; /* error value for return from freeswitch initialization */
|
||||
/* we have to initialize the service-specific stuff */
|
||||
memset(&status, 0, sizeof(SERVICE_STATUS));
|
||||
@@ -183,7 +184,7 @@ void WINAPI service_main(DWORD numArgs, char **args)
|
||||
set_high_priority();
|
||||
|
||||
/* attempt to initialize freeswitch and load modules */
|
||||
if (switch_core_init_and_modload(lfile, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_init_and_modload(lfile, flags, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
/* freeswitch did not start sucessfully */
|
||||
status.dwCurrentState = SERVICE_STOPPED;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user