advpack: Call OleInitialize before registering OCXs, like native does.
This commit is contained in:
parent
fd8868bac4
commit
5275b1b85f
|
@ -4,7 +4,7 @@ SRCDIR = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
MODULE = advpack.dll
|
MODULE = advpack.dll
|
||||||
IMPORTLIB = libadvpack.$(IMPLIBEXT)
|
IMPORTLIB = libadvpack.$(IMPLIBEXT)
|
||||||
IMPORTS = setupapi version user32 advapi32 kernel32 ntdll
|
IMPORTS = ole32 setupapi version user32 advapi32 kernel32 ntdll
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
advpack.c \
|
advpack.c \
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include "winnls.h"
|
#include "winnls.h"
|
||||||
#include "setupapi.h"
|
#include "setupapi.h"
|
||||||
#include "advpub.h"
|
#include "advpub.h"
|
||||||
|
#include "ole2.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
#include "advpack_private.h"
|
#include "advpack_private.h"
|
||||||
|
@ -350,8 +351,10 @@ static HRESULT adv_install(ADVInfo *info)
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
|
OleInitialize(NULL);
|
||||||
hr = iterate_section_fields(info->hinf, info->install_sec,
|
hr = iterate_section_fields(info->hinf, info->install_sec,
|
||||||
RegisterOCXs, register_ocxs_callback, NULL);
|
RegisterOCXs, register_ocxs_callback, NULL);
|
||||||
|
OleUninitialize();
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue