gameux: Revert NULL ptr check and deref (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-26 16:54:14 +02:00 committed by Alexandre Julliard
parent 2395ea98bb
commit 4e4aeeadaf
1 changed files with 3 additions and 2 deletions

View File

@ -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);