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

This commit is contained in:
André Hentschel 2015-03-19 22:11:38 +01:00 committed by Alexandre Julliard
parent e26e33fa06
commit 8f00116b6c

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