Skip to content

Commit

Permalink
OrcCommand: GetSectors: fix missing lvalue causing getBootDiskName fa…
Browse files Browse the repository at this point in the history
…ilure
  • Loading branch information
fabienfl-orc committed Dec 1, 2020
1 parent 81413c8 commit 782eb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrcCommand/GetSectors_Run.cpp
Expand Up @@ -117,7 +117,7 @@ std::wstring Main::getBootDiskName()
return {};
}

Guard::ScopeGuard([&hVolume]() {
Guard::ScopeGuard sg([&hVolume]() {
if (hVolume != INVALID_HANDLE_VALUE)
{
CloseHandle(hVolume);
Expand Down

0 comments on commit 782eb29

Please sign in to comment.