From a872019eb41bdebfaf9bf3c3c7af6f8c2568aa33 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 7 Sep 2018 13:38:14 +0200 Subject: [PATCH] Distinguish variables with same names ...to resolve C4457 warnings. --- MSICA/MSICA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MSICA/MSICA.cpp b/MSICA/MSICA.cpp index f5402b3..46898a1 100644 --- a/MSICA/MSICA.cpp +++ b/MSICA/MSICA.cpp @@ -165,12 +165,12 @@ UINT MSICA_API MSICAInitialize(MSIHANDLE hInstall) // Execute query! uiResult = ::MsiViewExecute(hViewBinary, hRecord); if (uiResult == NO_ERROR) { - PMSIHANDLE hRecord; + PMSIHANDLE hRecordCert; // Fetch one record from the view. - uiResult = ::MsiViewFetch(hViewBinary, &hRecord); + uiResult = ::MsiViewFetch(hViewBinary, &hRecordCert); if (uiResult == NO_ERROR) - uiResult = ::MsiRecordReadStream(hRecord, 1, binCert); + uiResult = ::MsiRecordReadStream(hRecordCert, 1, binCert); ::MsiViewClose(hViewBinary); if (uiResult != NO_ERROR) break; } else