msi: Create the MSI hidden window on demand.

This commit is contained in:
James Hawkins 2008-05-14 14:22:54 -05:00 committed by Alexandre Julliard
parent c154b0252a
commit 69c02d0b03
2 changed files with 3 additions and 1 deletions

View file

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

View file

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