Author: tfaber
Date: Sun Jul 22 18:48:28 2012
New Revision: 56940
URL:
http://svn.reactos.org/svn/reactos?rev=56940&view=rev
Log:
[ADVAPI32]
- Fix a potential memory leak. Spotted by Hermès
Modified:
trunk/reactos/dll/win32/advapi32/service/sctrl.c
Modified: trunk/reactos/dll/win32/advapi32/service/sctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1] Sun Jul 22 18:48:28
2012
@@ -177,7 +177,7 @@
(lpService->ThreadParams.W.lpServiceMain)(lpService->ThreadParams.W.dwArgCount,
lpService->ThreadParams.W.lpArgVector);
- if (lpService->ThreadParams.A.lpArgVector != NULL)
+ if (lpService->ThreadParams.W.lpArgVector != NULL)
{
HeapFree(GetProcessHeap(),
0,