[ros-diffs] [gedmurphy] 34729: - dependencies is a double terminated string array - patch by bugboy <martinmnet at hotmail dot com>

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Jul 24 09:57:21 CEST 2008


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/scm.c?rev=34729&r1=34728&r2=34729&view=diff
==============================================================================
--- 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)



More information about the Ros-diffs mailing list