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
This commit is contained in:
kichik 2006-02-24 18:15:35 +00:00
parent 8e9a79a4b7
commit 2af8b64f00

View file

@ -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