mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SYSSETUP] Register type libraries before signaling we are done
This prevents a race condition, where hSysSetupInf could be closed before all type libraries are registered
This commit is contained in:
parent
51b2197c12
commit
e6568af2d3
1 changed files with 6 additions and 5 deletions
|
@ -2170,6 +2170,12 @@ RegistrationProc(LPVOID Parameter)
|
|||
RegistrationNotify.Progress = RegistrationData->DllCount;
|
||||
RegistrationNotify.ActivityID = IDS_REGISTERING_COMPONENTS;
|
||||
RegistrationNotify.CurrentItem = NULL;
|
||||
|
||||
RegisterTypeLibraries(hSysSetupInf, L"TypeLibraries");
|
||||
|
||||
// FIXME: Move this call to a separate cleanup page!
|
||||
RtlCreateBootStatusDataFile();
|
||||
|
||||
SendMessage(RegistrationData->hwndDlg, PM_REGISTRATION_NOTIFY,
|
||||
1, (LPARAM) &RegistrationNotify);
|
||||
if (NULL != RegistrationNotify.ErrorMessage &&
|
||||
|
@ -2181,11 +2187,6 @@ RegistrationProc(LPVOID Parameter)
|
|||
SetupTermDefaultQueueCallback(RegistrationData->DefaultContext);
|
||||
HeapFree(GetProcessHeap(), 0, RegistrationData);
|
||||
|
||||
RegisterTypeLibraries(hSysSetupInf, L"TypeLibraries");
|
||||
|
||||
// FIXME: Move this call to a separate cleanup page!
|
||||
RtlCreateBootStatusDataFile();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue