mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
[0.4.7][SERVICES] RChangeServiceConfig2A(): Zero-Initialize InfoW variable CORE-14521
This lets forward NULL Info.psd/Info.psd->lpDescription/Info.psfa, instead of an uninitialized value. Currently this branch does not show the bug CORE-14521, but that is just because it doesn't use the more mean "advapi32 : service" test of 0.4.10. If we would port back the newer test from 0.4.9-dev-555-g3c1b7834e1
, then we would see it hanging as well. fix picked from 0.4.10-dev-627-ge3a1c2c81b
------- I also muted a forgotten DPRINT1, like it was done during 0.4.10-dev'ing on master and fixed some whitespace indentation, like it was done during 0.4.9-dev'ing on master
This commit is contained in:
parent
e061407748
commit
74201126b6
|
@ -2436,7 +2436,6 @@ DWORD RCreateServiceW(
|
|||
goto done;
|
||||
}
|
||||
|
||||
DPRINT1("\n");
|
||||
/* Write the security descriptor */
|
||||
dwError = ScmWriteSecurityDescriptor(hServiceKey,
|
||||
lpService->pSecurityDescriptor);
|
||||
|
@ -4936,7 +4935,7 @@ DWORD RChangeServiceConfig2A(
|
|||
SC_RPC_HANDLE hService,
|
||||
SC_RPC_CONFIG_INFOA Info)
|
||||
{
|
||||
SC_RPC_CONFIG_INFOW InfoW;
|
||||
SC_RPC_CONFIG_INFOW InfoW = { 0 };
|
||||
DWORD dwRet, dwLength;
|
||||
PVOID ptr = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue