Author: gedmurphy
Date: Thu Jul 24 02:57:20 2008
New Revision: 34729
URL:
http://svn.reactos.org/svn/reactos?rev=34729&view=rev
Log:
- dependencies is a double terminated string array
- patch by bugboy <martinmnet at hotmail dot com>
Modified:
trunk/reactos/dll/win32/advapi32/service/scm.c
Modified: trunk/reactos/dll/win32/advapi32/service/scm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] Thu Jul 24 02:57:20 2008
@@ -502,7 +502,7 @@
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
goto cleanup;
}
- MultiByteToWideChar(CP_ACP, 0, lpDependencies, -1, lpDependenciesW,
dwDependenciesLength);
+ MultiByteToWideChar(CP_ACP, 0, lpDependencies, dwDependenciesLength,
lpDependenciesW, dwDependenciesLength);
}
if (lpServiceStartName)