diff options
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/search.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/engine/search.cpp b/src/engine/search.cpp index 065003c7..6d5f8d49 100644 --- a/src/engine/search.cpp +++ b/src/engine/search.cpp | |||
| @@ -946,8 +946,7 @@ static HRESULT RegistrySearchValue( | |||
| 946 | { | 946 | { |
| 947 | // What if there is a hidden variable in sczKey? | 947 | // What if there is a hidden variable in sczKey? |
| 948 | LogStringLine(REPORT_STANDARD, "Registry key not found. Key = '%ls'", sczKey); | 948 | LogStringLine(REPORT_STANDARD, "Registry key not found. Key = '%ls'", sczKey); |
| 949 | hr = VariableSetVariant(pVariables, pSearch->sczVariable, &value); | 949 | |
| 950 | ExitOnFailure(hr, "Failed to clear variable."); | ||
| 951 | ExitFunction1(hr = S_OK); | 950 | ExitFunction1(hr = S_OK); |
| 952 | } | 951 | } |
| 953 | ExitOnFailure(hr, "Failed to open registry key."); | 952 | ExitOnFailure(hr, "Failed to open registry key."); |
| @@ -958,8 +957,7 @@ static HRESULT RegistrySearchValue( | |||
| 958 | { | 957 | { |
| 959 | // What if there is a hidden variable in sczKey or sczValue? | 958 | // What if there is a hidden variable in sczKey or sczValue? |
| 960 | LogStringLine(REPORT_STANDARD, "Registry value not found. Key = '%ls', Value = '%ls'", sczKey, sczValue); | 959 | LogStringLine(REPORT_STANDARD, "Registry value not found. Key = '%ls', Value = '%ls'", sczKey, sczValue); |
| 961 | hr = VariableSetVariant(pVariables, pSearch->sczVariable, &value); | 960 | |
| 962 | ExitOnFailure(hr, "Failed to clear variable."); | ||
| 963 | ExitFunction1(hr = S_OK); | 961 | ExitFunction1(hr = S_OK); |
| 964 | } | 962 | } |
| 965 | ExitOnWin32Error(er, hr, "Failed to query registry key value size."); | 963 | ExitOnWin32Error(er, hr, "Failed to query registry key value size."); |
