This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 0703f30  Add a log warning.
0703f30 is described below

commit 0703f3068acf4e1f9812a788e981cc8ff30b7f16
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Feb 3 06:52:50 2022 -0500

    Add a log warning.
---
 src/native/windows/apps/prunsrv/prunsrv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/native/windows/apps/prunsrv/prunsrv.c 
b/src/native/windows/apps/prunsrv/prunsrv.c
index 3d31e46..62acb7e 100644
--- a/src/native/windows/apps/prunsrv/prunsrv.c
+++ b/src/native/windows/apps/prunsrv/prunsrv.c
@@ -638,8 +638,10 @@ static BOOL saveConfiguration(LPAPXCMDLINE lpCmdline)
                                    PRG_REGROOT,
                                    lpCmdline->szApplication,
                                    APXREG_SOFTWARE | APXREG_SERVICE);
-    if (IS_INVALID_HANDLE(hRegistry))
+    if (IS_INVALID_HANDLE(hRegistry)) {
+        apxLogWrite(APXLOG_MARK_WARN "Can't save configuration: Invalid 
registry handle.");
         return FALSE;
+    }
     /* TODO: Use array size */
     while (_options[i].szName) {
         /* Skip the service params */

Reply via email to