From 2af8b64f00691eaaac43e56d20ccfff2e47d2987 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 24 Feb 2006 18:15:35 +0000 Subject: [PATCH] fixed bug #1400995 - MB_TOPMOST doesn't work as first sections' instruction git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4534 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index b86d7ac4..201b87b2 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -1506,6 +1506,17 @@ static DWORD WINAPI install_thread(LPVOID p) } #endif + // workaround for bug #1400995 + // + // for an unexplained reason, MessageBox with MB_TOPMOST + // will fail, if no other messages were sent from this + // thread to the GUI thread before it. + // + // the source of the problem couldn't be found, so a + // WM_NULL is sent to work around it. + + NotifyCurWnd(WM_NULL); + while (m_inst_sec--) { #ifdef NSIS_CONFIG_COMPONENTPAGE