gameux: Return function result on error (PVS-Studio).

oldstable
André Hentschel 2015-03-19 22:11:38 +01:00 committed by Alexandre Julliard
parent e26e33fa06
commit 8f00116b6c
1 changed files with 1 additions and 0 deletions

View File

@ -627,6 +627,7 @@ static HRESULT GAMEUX_loadGameStatistics(struct GAMEUX_STATS *pStats,
TRACE("(%p, %s, %d, %p)\n", pStats, debugstr_w(sGameId), openType, pOpenResult);
hr = GAMEUX_buildStatisticsFilePath(sGameId, pStats->sStatsFile);
if (FAILED(hr)) return hr;
hr = GAMEUX_loadStatisticsFromFile(pStats);
TRACE("ldstats finished, res: %#x\n", hr);