made "unpacking dialog" dialog only come up when the main installer window hasnt' been created yet.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1100 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-09-21 02:12:30 +00:00
parent 5b66661b0a
commit d493729c2f

View file

@ -261,7 +261,7 @@ static int NSISCALL __ensuredata(int amount)
m_pos=m_length-(amount-(dbd_size-dbd_pos));
while (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) DispatchMessage(&msg);
}
else if (GetTickCount() > verify_time)
else if (g_hwnd && GetTickCount() > verify_time)
hwnd=CreateDialogParam(
g_hInstance,
MAKEINTRESOURCE(IDD_VERIFY),