mirror of
https://github.com/reactos/reactos.git
synced 2024-10-23 14:36:11 +00:00
- 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:
parent
29ca8d764e
commit
502222bd4c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue