aboutsummaryrefslogtreecommitdiff
path: root/src/engine/EngineForApplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/EngineForApplication.cpp')
-rw-r--r--src/engine/EngineForApplication.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/EngineForApplication.cpp b/src/engine/EngineForApplication.cpp
index c3600c7b..e559b438 100644
--- a/src/engine/EngineForApplication.cpp
+++ b/src/engine/EngineForApplication.cpp
@@ -709,6 +709,12 @@ static HRESULT BAEngineApply(
709{ 709{
710 HRESULT hr = S_OK; 710 HRESULT hr = S_OK;
711 711
712 ExitOnNull(pArgs->hwndParent, hr, E_INVALIDARG, "BA passed NULL hwndParent to Apply.");
713 if (!::IsWindow(pArgs->hwndParent))
714 {
715 ExitOnFailure(hr = E_INVALIDARG, "BA passed invalid hwndParent to Apply.");
716 }
717
712 if (!::PostThreadMessageW(pContext->dwThreadId, WM_BURN_APPLY, 0, reinterpret_cast<LPARAM>(pArgs->hwndParent))) 718 if (!::PostThreadMessageW(pContext->dwThreadId, WM_BURN_APPLY, 0, reinterpret_cast<LPARAM>(pArgs->hwndParent)))
713 { 719 {
714 ExitWithLastError(hr, "Failed to post apply message."); 720 ExitWithLastError(hr, "Failed to post apply message.");