mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 18:49:44 +00:00
fix NULL checks
svn path=/trunk/; revision=39442
This commit is contained in:
parent
5e6db6dc60
commit
75f0865f37
1 changed files with 2 additions and 2 deletions
|
@ -3578,7 +3578,7 @@ DWORD RQueryServiceConfigA(
|
||||||
else
|
else
|
||||||
dwRequiredSize += 2;
|
dwRequiredSize += 2;
|
||||||
|
|
||||||
if (lpService->lpGroup != NULL)
|
if ((lpService->lpGroup != NULL) && (lpService->lpGroup->lpGroupName != NULL))
|
||||||
dwRequiredSize += wcslen(lpService->lpGroup->lpGroupName) + 1;
|
dwRequiredSize += wcslen(lpService->lpGroup->lpGroupName) + 1;
|
||||||
else
|
else
|
||||||
dwRequiredSize += 2;
|
dwRequiredSize += 2;
|
||||||
|
@ -3632,7 +3632,7 @@ DWORD RQueryServiceConfigA(
|
||||||
lpConfig->lpBinaryPathName = (LPSTR)((ULONG_PTR)lpStr - (ULONG_PTR)lpConfig);
|
lpConfig->lpBinaryPathName = (LPSTR)((ULONG_PTR)lpStr - (ULONG_PTR)lpConfig);
|
||||||
lpStr += (strlen((LPSTR)lpStr) + 1);
|
lpStr += (strlen((LPSTR)lpStr) + 1);
|
||||||
|
|
||||||
if (lpService->lpGroup)
|
if (lpService->lpGroup && lpService->lpGroup->lpGroupName)
|
||||||
{
|
{
|
||||||
WideCharToMultiByte(CP_ACP,
|
WideCharToMultiByte(CP_ACP,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue