Author: janderwald
Date: Sat Dec 20 04:09:25 2008
New Revision: 38195
URL:
http://svn.reactos.org/svn/reactos?rev=38195&view=rev
Log:
- Fix parameters for CreateService
Modified:
trunk/reactos/base/applications/sc/create.c
Modified: trunk/reactos/base/applications/sc/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sc/creat…
==============================================================================
--- trunk/reactos/base/applications/sc/create.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sc/create.c [iso-8859-1] Sat Dec 20 04:09:25 2008
@@ -20,7 +20,7 @@
DWORD dwErrorControl = SERVICE_ERROR_NORMAL;
LPCTSTR lpBinaryPathName = NULL;
LPCTSTR lpLoadOrderGroup = NULL;
- LPDWORD lpdwTagId = NULL;
+ DWORD dwTagId = 0;
LPCTSTR lpDependencies = NULL;
LPCTSTR lpServiceStartName = NULL;
LPCTSTR lpPassword = NULL;
@@ -36,7 +36,7 @@
_tprintf(_T("error control - %lu\n"), dwErrorControl);
_tprintf(_T("Binary path - %s\n"), lpBinaryPathName);
_tprintf(_T("load order group - %s\n"), lpLoadOrderGroup);
- _tprintf(_T("tag - %lu\n"), lpdwTagId);
+ _tprintf(_T("tag - %lu\n"), dwTagId);
_tprintf(_T("dependincies - %s\n"), lpDependencies);
_tprintf(_T("account start name - %s\n"), lpServiceStartName);
_tprintf(_T("account password - %s\n"), lpPassword);
@@ -66,7 +66,7 @@
dwErrorControl,
lpBinaryPathName,
lpLoadOrderGroup,
- lpdwTagId,
+ &dwTagId,
lpDependencies,
lpServiceStartName,
lpPassword);