- fix the length of the dependencies string
authorGed Murphy <gedmurphy@reactos.org>
Mon, 21 Jul 2008 11:43:55 +0000 (11:43 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Mon, 21 Jul 2008 11:43:55 +0000 (11:43 +0000)
- spotted by bugboy <martinmnet at hotmail dot com>

svn path=/trunk/; revision=34634

reactos/dll/win32/advapi32/service/scm.c

index 4b17d17..4a1ad32 100644 (file)
@@ -608,6 +608,8 @@ CreateServiceW(SC_HANDLE hSCManager,
             lpStr = lpStr + dwLength;
         }
         dwDependenciesLength++;
+
+        dwDependenciesLength *= sizeof(WCHAR);
     }
 
     /* FIXME: Encrypt the password */