diff options
Diffstat (limited to 'src/engine/burnextension.cpp')
| -rw-r--r-- | src/engine/burnextension.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/engine/burnextension.cpp b/src/engine/burnextension.cpp index 157b082f..7568f75e 100644 --- a/src/engine/burnextension.cpp +++ b/src/engine/burnextension.cpp | |||
| @@ -2,6 +2,14 @@ | |||
| 2 | 2 | ||
| 3 | #include "precomp.h" | 3 | #include "precomp.h" |
| 4 | 4 | ||
| 5 | |||
| 6 | static HRESULT SendRequiredBextMessage( | ||
| 7 | __in BURN_EXTENSION* pExtension, | ||
| 8 | __in BUNDLE_EXTENSION_MESSAGE message, | ||
| 9 | __in const LPVOID pvArgs, | ||
| 10 | __inout LPVOID pvResults | ||
| 11 | ); | ||
| 12 | |||
| 5 | // function definitions | 13 | // function definitions |
| 6 | 14 | ||
| 7 | /******************************************************************* | 15 | /******************************************************************* |
| @@ -234,9 +242,23 @@ EXTERN_C BEEAPI BurnExtensionPerformSearch( | |||
| 234 | 242 | ||
| 235 | results.cbSize = sizeof(results); | 243 | results.cbSize = sizeof(results); |
| 236 | 244 | ||
| 237 | hr = pExtension->pfnBurnExtensionProc(BUNDLE_EXTENSION_MESSAGE_SEARCH, &args, &results, pExtension->pvBurnExtensionProcContext); | 245 | hr = SendRequiredBextMessage(pExtension, BUNDLE_EXTENSION_MESSAGE_SEARCH, &args, &results); |
| 238 | ExitOnFailure(hr, "BundleExtension '%ls' Search '%ls' failed.", pExtension->sczId, wzSearchId); | 246 | ExitOnFailure(hr, "BundleExtension '%ls' Search '%ls' failed.", pExtension->sczId, wzSearchId); |
| 239 | 247 | ||
| 240 | LExit: | 248 | LExit: |
| 241 | return hr; | 249 | return hr; |
| 242 | } | 250 | } |
| 251 | |||
| 252 | static HRESULT SendRequiredBextMessage( | ||
| 253 | __in BURN_EXTENSION* pExtension, | ||
| 254 | __in BUNDLE_EXTENSION_MESSAGE message, | ||
| 255 | __in const LPVOID pvArgs, | ||
| 256 | __inout LPVOID pvResults | ||
| 257 | ) | ||
| 258 | { | ||
| 259 | HRESULT hr = S_OK; | ||
| 260 | |||
| 261 | hr = pExtension->pfnBurnExtensionProc(message, pvArgs, pvResults, pExtension->pvBurnExtensionProcContext); | ||
| 262 | |||
| 263 | return hr; | ||
| 264 | } | ||
