msi: Create the MSI hidden window on demand.
This commit is contained in:
parent
c154b0252a
commit
69c02d0b03
|
@ -3482,6 +3482,9 @@ msi_dialog *msi_dialog_create( MSIPACKAGE* package,
|
|||
|
||||
TRACE("%p %s\n", package, debugstr_w(szDialogName));
|
||||
|
||||
if (!hMsiHiddenWindow)
|
||||
msi_dialog_register_class();
|
||||
|
||||
/* allocate the structure for the dialog to use */
|
||||
dialog = msi_alloc_zero( sizeof *dialog + sizeof(WCHAR)*strlenW(szDialogName) );
|
||||
if( !dialog )
|
||||
|
|
|
@ -72,7 +72,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
case DLL_PROCESS_ATTACH:
|
||||
msi_hInstance = hinstDLL;
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
msi_dialog_register_class();
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (msi_typelib) ITypeLib_Release( msi_typelib );
|
||||
|
|
Loading…
Reference in New Issue