mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:45:53 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue