diff --git a/reactos/dll/win32/advapi32/service/scm.c b/reactos/dll/win32/advapi32/service/scm.c index 4b17d17efdc..4a1ad32da5b 100644 --- a/reactos/dll/win32/advapi32/service/scm.c +++ b/reactos/dll/win32/advapi32/service/scm.c @@ -608,6 +608,8 @@ CreateServiceW(SC_HANDLE hSCManager, lpStr = lpStr + dwLength; } dwDependenciesLength++; + + dwDependenciesLength *= sizeof(WCHAR); } /* FIXME: Encrypt the password */