mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
fix NULL checks
svn path=/trunk/; revision=39442
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user