mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +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
|
||||
dwRequiredSize += 2;
|
||||
|
||||
if (lpService->lpGroup != NULL)
|
||||
if ((lpService->lpGroup != NULL) && (lpService->lpGroup->lpGroupName != NULL))
|
||||
dwRequiredSize += wcslen(lpService->lpGroup->lpGroupName) + 1;
|
||||
else
|
||||
dwRequiredSize += 2;
|
||||
|
@ -3632,7 +3632,7 @@ DWORD RQueryServiceConfigA(
|
|||
lpConfig->lpBinaryPathName = (LPSTR)((ULONG_PTR)lpStr - (ULONG_PTR)lpConfig);
|
||||
lpStr += (strlen((LPSTR)lpStr) + 1);
|
||||
|
||||
if (lpService->lpGroup)
|
||||
if (lpService->lpGroup && lpService->lpGroup->lpGroupName)
|
||||
{
|
||||
WideCharToMultiByte(CP_ACP,
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue