Fix bugs in ChangeServiceConfig2W spotted by Casper and Royce
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 31 Dec 2005 10:11:58 +0000 (10:11 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sat, 31 Dec 2005 10:11:58 +0000 (10:11 +0000)
svn path=/trunk/; revision=20478

reactos/lib/advapi32/service/scm.c

index 1846689..c917180 100644 (file)
@@ -97,8 +97,10 @@ ChangeServiceConfig2W(SC_HANDLE hService,
     {
         case SERVICE_CONFIG_DESCRIPTION:
             lpInfoSize = sizeof(SERVICE_DESCRIPTION);
+            break;
         case SERVICE_CONFIG_FAILURE_ACTIONS:
             lpInfoSize = sizeof(SERVICE_FAILURE_ACTIONS);
+            break;
         default:
             DPRINT1("Unknown info level 0x%lx\n", dwInfoLevel);
             SetLastError(ERROR_INVALID_PARAMETER);
@@ -121,6 +123,8 @@ ChangeServiceConfig2W(SC_HANDLE hService,
         SetLastError(dwError);
         return FALSE;
     }
+
+    return TRUE;
 }