Revert incorrect fix committed in r34077 by cfinck, and replace it by a better one.

svn path=/trunk/; revision=34788
This commit is contained in:
Hervé Poussineau 2008-07-25 18:45:54 +00:00
parent 7cf8ccf54f
commit d62f18210a
2 changed files with 3 additions and 9 deletions

View file

@ -51,11 +51,7 @@ StatusMessageWindowProc(
if (msg->pTitle) if (msg->pTitle)
SetWindowTextW(hwndDlg, msg->pTitle); SetWindowTextW(hwndDlg, msg->pTitle);
SetDlgItemTextW(hwndDlg, IDC_STATUSLABEL, msg->pMessage); SetDlgItemTextW(hwndDlg, IDC_STATUSLABEL, msg->pMessage);
if (!msg->Context->SignaledStatusWindowCreated) SetEvent(msg->StartupEvent);
{
msg->Context->SignaledStatusWindowCreated = TRUE;
SetEvent(msg->StartupEvent);
}
return TRUE; return TRUE;
} }
} }
@ -140,7 +136,7 @@ GUIDisplayStatusMessage(
return FALSE; return FALSE;
} }
if(pTitle) if (pTitle)
SetWindowTextW(pgContext->hStatusWindow, pTitle); SetWindowTextW(pgContext->hStatusWindow, pTitle);
SetDlgItemTextW(pgContext->hStatusWindow, IDC_STATUSLABEL, pMessage); SetDlgItemTextW(pgContext->hStatusWindow, IDC_STATUSLABEL, pMessage);
@ -155,8 +151,7 @@ GUIRemoveStatusMessage(
if (pgContext->hStatusWindow) if (pgContext->hStatusWindow)
{ {
EndDialog(pgContext->hStatusWindow, 0); EndDialog(pgContext->hStatusWindow, 0);
pgContext->hStatusWindow = 0; pgContext->hStatusWindow = NULL;
pgContext->SignaledStatusWindowCreated = FALSE;
} }
return TRUE; return TRUE;

View file

@ -18,7 +18,6 @@ typedef struct
PWLX_DISPATCH_VERSION_1_3 pWlxFuncs; PWLX_DISPATCH_VERSION_1_3 pWlxFuncs;
HANDLE hDllInstance; HANDLE hDllInstance;
HWND hStatusWindow; HWND hStatusWindow;
BOOL SignaledStatusWindowCreated;
DWORD AutoLogonState; DWORD AutoLogonState;
/* Informations to be filled during logon */ /* Informations to be filled during logon */