From 8f00116b6cb2fa283ca0d7b26b267e3a78a70c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 19 Mar 2015 22:11:38 +0100 Subject: [PATCH] gameux: Return function result on error (PVS-Studio). --- dlls/gameux/gamestatistics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c index ff57b7721ad..e6e33bbf877 100644 --- a/dlls/gameux/gamestatistics.c +++ b/dlls/gameux/gamestatistics.c @@ -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);