8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Backported CORE-1923: "instsvc remove" returns 1 when succefully executed.

This commit is contained in:
dimitr 2009-02-09 10:14:16 +00:00
parent 8298cd924f
commit 7bec52fe18

View File

@ -359,7 +359,9 @@ int CLIB_ROUTINE main( int argc, char **argv)
}
}
else
status = FB_FAILURE;
{
status = (GetLastError() == ERROR_SERVICE_DOES_NOT_EXIST) ? FB_SUCCESS : FB_FAILURE;
}
service = OpenService(manager, remote_service_name.c_str(),
SERVICE_ALL_ACCESS);
@ -384,7 +386,9 @@ int CLIB_ROUTINE main( int argc, char **argv)
}
}
else
status2 = FB_FAILURE;
{
status2 = (GetLastError() == ERROR_SERVICE_DOES_NOT_EXIST) ? FB_SUCCESS : FB_FAILURE;
}
if (status != FB_SUCCESS && status2 != FB_SUCCESS)
status = FB_FAILURE;