From 75d645c6aec0df0e02bd3aaf2fe2571d83316d4c Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 3 Aug 2021 15:43:30 -0500 Subject: Remove unelevation code since clean room changes made it unreachable. --- src/burn/engine/core.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/burn/engine/core.cpp') diff --git a/src/burn/engine/core.cpp b/src/burn/engine/core.cpp index 94aaf204..3e45cdfc 100644 --- a/src/burn/engine/core.cpp +++ b/src/burn/engine/core.cpp @@ -1086,14 +1086,6 @@ extern "C" HRESULT CoreCreateCleanRoomCommandLine( ExitOnFailure(hr, "Failed to append /disablesystemrestore."); } -#ifdef ENABLE_UNELEVATE - if (pInternalCommand->fDisableUnelevate) - { - hr = StrAllocConcatFormatted(psczCommandLine, L" /%ls", BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE); - ExitOnFailure(hr, "Failed to append switch: %ls.", BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE); - } -#endif - if (pInternalCommand->sczOriginalSource) { hr = StrAllocConcat(psczCommandLine, L" /originalsource", 0); @@ -1646,12 +1638,6 @@ extern "C" HRESULT CoreParseCommandLine( { pCommand->fPassthrough = TRUE; } - else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE, -1)) - { -#ifdef ENABLE_UNELEVATE - pInternalCommand->fDisableUnelevate = TRUE; -#endif - } else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, BURN_COMMANDLINE_SWITCH_RUNONCE, -1)) { if (BURN_MODE_UNKNOWN != pInternalCommand->mode) -- cgit v1.2.3-55-g6feb