Use the right variable (IDEA-229061)

GitOrigin-RevId: 07c0ec1937f9001d83918b659ecc1c9e4a7ac4b4
This commit is contained in:
Ivan Migalev
2019-12-18 13:03:45 +00:00
committed by intellij-monorepo-bot
parent 22501defbe
commit a94960b23a
2 changed files with 1 additions and 1 deletions
Binary file not shown.
@@ -190,7 +190,7 @@ int main(int argc, char **argv)
INT pid = SUCCEEDED(hr) ? vtId.intVal : 0;
wcout << "pid:" << pid << "\n";
VARIANT vtName = { 0 };
hres = pclsObj->Get(L"Name", 0, &vtName, nullptr, nullptr);
hr = pclsObj->Get(L"Name", 0, &vtName, nullptr, nullptr);
if (SUCCEEDED(hr) && vtName.bstrVal != nullptr)
wcout << L"name:" << escapeLineBreaks(vtName.bstrVal) << L"\n";
else