- fix typo in CreateServiceA

- bug found by Michael martinmnet at hotmail dot com (IRC: bugboy)

svn path=/trunk/; revision=33728
This commit is contained in:
Johannes Anderwald 2008-05-27 08:54:07 +00:00
parent 29ca8d764e
commit 502222bd4c

View file

@ -508,7 +508,7 @@ CreateServiceA(SC_HANDLE hSCManager,
if (lpServiceStartName)
{
len = MultiByteToWideChar(CP_ACP, 0, lpServiceStartName, -1, NULL, 0);
lpServiceStartName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
lpServiceStartNameW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
if (!lpServiceStartNameW)
{
SetLastError(ERROR_NOT_ENOUGH_MEMORY);