From 75f0865f3764ade3cf33a148b59c4458dba6460e Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Fri, 6 Feb 2009 15:24:18 +0000 Subject: [PATCH] fix NULL checks svn path=/trunk/; revision=39442 --- reactos/base/system/services/rpcserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index 4ac0bf55f37..a686f9a12b2 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -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,