override the standard parameters from the ImagePath registry key.
* Added HAVE_INT32_T to the Windows config.h to avoid duplicate definitions.
bk: 47334296X0OLsq9Ph2JztaySGsnofg
+* [Bug 957] Windows only: Let command line parameters from the Windows SCM GUI
+ override the standard parameters from the ImagePath registry key.
+* Added HAVE_INT32_T to the Windows config.h to avoid duplicate definitions.
* Update bugreport URL.
* Update -I documentation.
* [Bug 713] Fix bug reporting information.
#define pid_t int /* PID is an int */
#define ssize_t int /* ssize is an int */
typedef __int32 int32_t; /* define a typedef for int32_t */
+#define HAVE_INT32_T 1
/*
* Map the stream to the file number
void WINAPI service_main( DWORD argc, LPTSTR *argv )
{
- /* pass the global command line options on to the service */
- ntpdmain( glb_argc, glb_argv );
+ if ( argc > 1 )
+ {
+ /*
+ * Let command line parameters from the Windows SCM GUI
+ * override the standard parameters from the ImagePath registry key.
+ */
+ glb_argc = argc;
+ glb_argv = argv;
+ }
+
+ ntpdmain( glb_argc, glb_argv );
}