diff options
Diffstat (limited to 'src/burn/engine/variable.cpp')
-rw-r--r-- | src/burn/engine/variable.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/burn/engine/variable.cpp b/src/burn/engine/variable.cpp index 36dc92e0..9d0aec52 100644 --- a/src/burn/engine/variable.cpp +++ b/src/burn/engine/variable.cpp | |||
@@ -302,8 +302,6 @@ extern "C" HRESULT VariableInitialize( | |||
302 | {BURN_BUNDLE_ELEVATED, InitializeVariableNumeric, 0, FALSE, TRUE}, | 302 | {BURN_BUNDLE_ELEVATED, InitializeVariableNumeric, 0, FALSE, TRUE}, |
303 | {BURN_BUNDLE_ACTIVE_PARENT, InitializeVariableString, NULL, FALSE, TRUE}, | 303 | {BURN_BUNDLE_ACTIVE_PARENT, InitializeVariableString, NULL, FALSE, TRUE}, |
304 | {BURN_BUNDLE_PROVIDER_KEY, InitializeVariableString, (DWORD_PTR)L"", FALSE, TRUE}, | 304 | {BURN_BUNDLE_PROVIDER_KEY, InitializeVariableString, (DWORD_PTR)L"", FALSE, TRUE}, |
305 | {BURN_BUNDLE_SOURCE_PROCESS_PATH, InitializeVariableString, NULL, FALSE, TRUE}, | ||
306 | {BURN_BUNDLE_SOURCE_PROCESS_FOLDER, InitializeVariableString, NULL, FALSE, TRUE}, | ||
307 | {BURN_BUNDLE_TAG, InitializeVariableString, (DWORD_PTR)L"", FALSE, TRUE}, | 305 | {BURN_BUNDLE_TAG, InitializeVariableString, (DWORD_PTR)L"", FALSE, TRUE}, |
308 | {BURN_BUNDLE_UILEVEL, InitializeVariableNumeric, 0, FALSE, TRUE}, | 306 | {BURN_BUNDLE_UILEVEL, InitializeVariableNumeric, 0, FALSE, TRUE}, |
309 | {BURN_BUNDLE_VERSION, InitializeVariableVersion, (DWORD_PTR)L"0", FALSE, TRUE}, | 307 | {BURN_BUNDLE_VERSION, InitializeVariableVersion, (DWORD_PTR)L"0", FALSE, TRUE}, |
@@ -1950,13 +1948,13 @@ static HRESULT InitializeVariableNativeMachine( | |||
1950 | ) | 1948 | ) |
1951 | { | 1949 | { |
1952 | UNREFERENCED_PARAMETER(dwpData); | 1950 | UNREFERENCED_PARAMETER(dwpData); |
1953 | 1951 | ||
1954 | HRESULT hr = S_OK; | 1952 | HRESULT hr = S_OK; |
1955 | USHORT usNativeMachine = IMAGE_FILE_MACHINE_UNKNOWN; | 1953 | USHORT usNativeMachine = IMAGE_FILE_MACHINE_UNKNOWN; |
1956 | 1954 | ||
1957 | hr = ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine); | 1955 | hr = ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine); |
1958 | ExitOnFailure(hr, "Failed to get native machine value."); | 1956 | ExitOnFailure(hr, "Failed to get native machine value."); |
1959 | 1957 | ||
1960 | if (S_FALSE != hr) | 1958 | if (S_FALSE != hr) |
1961 | { | 1959 | { |
1962 | hr = BVariantSetNumeric(pValue, usNativeMachine); | 1960 | hr = BVariantSetNumeric(pValue, usNativeMachine); |