gameux: Revert NULL ptr check and deref (Coverity).
This commit is contained in:
parent
2395ea98bb
commit
4e4aeeadaf
|
@ -819,12 +819,13 @@ static HRESULT WINAPI GameStatisticsImpl_GetCategoryTitle(
|
|||
|
||||
TRACE("%p, %d, %p\n", This, categoryIndex, pTitle);
|
||||
|
||||
if(!pTitle)
|
||||
return E_INVALIDARG;
|
||||
*pTitle = NULL;
|
||||
|
||||
if(!pTitle || categoryIndex >= MAX_CATEGORIES)
|
||||
if (categoryIndex >= MAX_CATEGORIES)
|
||||
hr = E_INVALIDARG;
|
||||
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
{
|
||||
nLength = lstrlenW(This->stats.categories[categoryIndex].sName);
|
||||
|
|
Loading…
Reference in New Issue